Class: Chef::Knife::Cloud::OvirtServerList
- Inherits:
-
ServerListCommand
- Object
- ServerListCommand
- Chef::Knife::Cloud::OvirtServerList
- Includes:
- OvirtHelpers, OvirtServiceOptions, ServerListOptions
- Defined in:
- lib/chef/knife/ovirt_server_list.rb
Instance Method Summary collapse
Methods included from OvirtServiceOptions
Methods included from OvirtHelpers
#create_service_instance, #humanize, #validate!, #volume_ready
Instance Method Details
#before_exec_command ⇒ Object
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 |