Class: Crowbar::Client::Command::Upgrade::Nodes
- Includes:
- Mixin::UpgradeError
- Defined in:
- lib/crowbar/client/command/upgrade/nodes.rb
Overview
Implementation for the upgrade nodes command
Instance Attribute Summary
Attributes inherited from Base
#args, #options, #stderr, #stdin, #stdout
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Crowbar::Client::Command::Base
Instance Method Details
#execute ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/crowbar/client/command/upgrade/nodes.rb', line 33 def execute request.process do |request| case request.code when 200 case args.component when "all" say "Successfully triggered the upgrade of the nodes. " when "controllers" say "Successfully triggered the upgrade of the controller nodes. " when "postpone" say "The upgrade of compute nodes was postponed." when "resume" say "The upgrade process was resumed, compute nodes could be upgraded now." else say "Successfully triggered the upgrade of node #{args.component}. " end say "Query the upgrade status to follow the process with " \ "'crowbarctl upgrade status'." else err format_error( request.parsed_response["error"], "nodes" ) end end end |