Class: Chef::Knife::Cloud::OvirtServerList

Inherits:
ServerListCommand
  • Object
show all
Includes:
OvirtHelpers, OvirtServiceOptions, ServerListOptions
Defined in:
lib/chef/knife/ovirt_server_list.rb

Instance Method Summary collapse

Methods included from OvirtServiceOptions

included

Methods included from OvirtHelpers

#create_service_instance, #humanize, #validate!, #volume_ready

Instance Method Details

#before_exec_commandObject



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/chef/knife/ovirt_server_list.rb', line 24

def before_exec_command
  @columns_with_info = [
    { label: 'VM ID', key: 'id' },
    { label: 'Name', key: 'name' },
    { label: 'Cores', key: 'cores' },
    { label: 'Memory', key: 'memory', value_callback: method(:humanize) },
    { label: 'Storage', key: 'storage', value_callback: method(:humanize) },
    { label: 'Status', key: 'status' },
  ]
  super
end