Class: Emasser::Systems
Class Method Summary
collapse
Instance Method Summary
collapse
banner
#to_output_hash
#to_input_hash
#optional_options, #required_options
Class Method Details
.exit_on_failure? ⇒ Boolean
120
121
122
|
# File 'lib/emasser/get.rb', line 120
def self.exit_on_failure?
true
end
|
Instance Method Details
#all ⇒ Object
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# File 'lib/emasser/get.rb', line 140
def all
optional_options_keys = optional_options(@_initializer).keys
optional_options = to_input_hash(optional_options_keys, options)
begin
result = SwaggerClient::SystemsApi.new.get_systems(optional_options)
puts to_output_hash(result).green
rescue SwaggerClient::ApiError => e
puts 'Exception when calling SystemsApi->get_systems'.red
puts to_output_hash(e)
end
end
|