Class: HammerCLIForeman::SmartProxy::InfoCommand

Inherits:
InfoCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/smart_proxy.rb

Instance Method Summary collapse

Methods inherited from InfoCommand

command_name, #print_data, #request_params, #retrieve_data

Instance Method Details

#extend_data(proxy) ⇒ Object



31
32
33
34
# File 'lib/hammer_cli_foreman/smart_proxy.rb', line 31

def extend_data(proxy)
  proxy['_features'] = proxy['features'].map { |f| f['name'] }
  proxy
end