Class: SwissAdmin::Commands::Hardware

Inherits:
Thor
  • Object
show all
Defined in:
lib/swiss_admin/cli/hardware_cli.rb

Instance Method Summary collapse

Instance Method Details

#cpusObject



8
9
10
# File 'lib/swiss_admin/cli/hardware_cli.rb', line 8

def cpus
  $stdout.puts SwissAdmin::Hardware.cpus
end

#memoryObject



13
14
15
# File 'lib/swiss_admin/cli/hardware_cli.rb', line 13

def memory
  print_table(SwissAdmin::Hardware.memory)
end