class Crowbar::Client::Command::Upgrade::Admin
Implementation for the upgrade admin command
Public Instance Methods
execute()
click to toggle source
# File lib/crowbar/client/command/upgrade/admin.rb, line 33 def execute request.process do |request| case request.code when 200 say "Triggered Crowbar operating system upgrade" say "Wait until the admin server is fully upgraded and rebooted." if Config.defaults[:upgrade_versions] == "6-to-7" say "Next step: 'crowbarctl upgrade database [new|connect]'" else say "Next step: 'crowbarctl upgrade repocheck nodes'" end else err format_error( request.parsed_response["error"], "admin" ) end end end
request()
click to toggle source
# File lib/crowbar/client/command/upgrade/admin.rb, line 27 def request @request ||= Request::Upgrade::Admin.new( args ) end