Class: Emasser::Systems
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Emasser::Systems
- Defined in:
- lib/emasser/get.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SubCommandBase
Methods included from OutputConverters
#change_to_datetime, #to_output_hash
Methods included from InputConverters
Methods included from OptionsParser
#optional_options, #required_options
Class Method Details
.exit_on_failure? ⇒ Boolean
132 133 134 |
# File 'lib/emasser/get.rb', line 132 def self.exit_on_failure? true end |
Instance Method Details
#all ⇒ Object
150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/emasser/get.rb', line 150 def all = (@_initializer).keys = to_input_hash(, ) # optional_options.merge!(Emasser::GET_SYSTEM_RETURN_TYPE) begin # Get system information matching provided parameters result = EmassClient::SystemsApi.new.get_systems() puts to_output_hash(result).green rescue EmassClient::ApiError => e puts 'Exception when calling SystemsApi->get_systems'.red puts to_output_hash(e) end end |