class Crowbar::Client::Command::Upgrade::Services

Implementation for the upgrade services command

Public Instance Methods

execute() click to toggle source
# File lib/crowbar/client/command/upgrade/services.rb, line 33
def execute
  request.process do |request|
    case request.code
    when 200
      say "Stopping related services on all nodes. " \
        "Query the upgrade status to follow the process with 'crowbarctl upgrade status'."
      say "Next step: 'crowbarctl upgrade backup openstack'"
    else
      err format_error(
        request.parsed_response["error"], "services"
      )
    end
  end
end
request() click to toggle source
# File lib/crowbar/client/command/upgrade/services.rb, line 27
def request
  @request ||= Request::Upgrade::Services.new(
    args
  )
end