class Crowbar::Client::App::Upgrade

A Thor based CLI wrapper for upgrade commands

Public Instance Methods

admin() click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 184
def admin
  Command::Upgrade::Admin.new(
    *command_params
  ).execute
rescue => e
  catch_errors(e)
end
backup(component) click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 237
def backup(component)
  Command::Upgrade::Backup.new(
    *command_params(
      component: component
    )
  ).execute
rescue => e
  catch_errors(e)
end
cancel() click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 424
def cancel
  Command::Upgrade::Cancel.new(
    *command_params
  ).execute
rescue => e
  catch_errors(e)
end
database(mode) click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 374
def database(mode)
  Command::Upgrade::Database.new(
    *command_params(
      mode: mode
    )
  ).execute
rescue => e
  catch_errors(e)
end
mode(mode = nil) click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 397
def mode(mode = nil)
  Command::Upgrade::Mode.new(
    *command_params(
      mode: mode
    )
  ).execute
rescue => e
  catch_errors(e)
end
nodes(component) click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 219
def nodes(component)
  Command::Upgrade::Nodes.new(
    *command_params(
      component: component
    )
  ).execute
rescue => e
  catch_errors(e)
end
prechecks() click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 169
def prechecks
  Command::Upgrade::Prechecks.new(
    *command_params
  ).execute
rescue => e
  catch_errors(e)
end
prepare() click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 91
def prepare
  Command::Upgrade::Prepare.new(
    *command_params
  ).execute
rescue => e
  catch_errors(e)
end
repocheck(component) click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 300
def repocheck(component)
  Command::Upgrade::Repocheck.new(
    *command_params(
      component: component
    )
  ).execute
rescue => e
  catch_errors(e)
end
services() click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 115
def services
  Command::Upgrade::Services.new(
    *command_params
  ).execute
rescue => e
  catch_errors(e)
end
status(component = nil) click to toggle source
# File lib/crowbar/client/app/upgrade.rb, line 74
def status(component = nil)
  Command::Upgrade::Status.new(
    *command_params(
      nodes: component == "nodes"
    )
  ).execute
rescue => e
  catch_errors(e)
end