Class: Status
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
#add_generic_options, #add_specific_options, #initialize, #instances, #process_options, #verify_configs, #verify_options
Constructor Details
This class inherits a constructor from Command
Instance Method Details
#description ⇒ Object
5 6 7 |
# File 'lib/maws/commands/status.rb', line 5 def description "status - show information about specified instances" end |
#run! ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/maws/commands/status.rb', line 9 def run! instances.specified if instances.specified.empty? info "no instances specified" return end roles_list = @config.available_roles instances.specified.roles_in_order_of(roles_list).each { |role_name| role_instances = instances.specified.with_role(role_name) next if role_instances.empty? InstanceDisplay.display_collection_for_role(role_name, role_instances) } end |