Class: HammerCLIForeman::OperatingSystem::ListCommand

Inherits:
ListCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/operating_system.rb

Instance Method Summary collapse

Methods inherited from ListCommand

#adapter, command_name, #retrieve_data

Instance Method Details

#extend_data(os) ⇒ Object



21
22
23
24
# File 'lib/hammer_cli_foreman/operating_system.rb', line 21

def extend_data(os)
  os["_os_name"] = os.select { |k, v| ["name", "major", "minor"].include? k }
  os
end