Class: HammerCLIForeman::ComputeResources::Libvirt::HostHelpExtenstion

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb

Instance Method Summary collapse

Instance Method Details

#host_create_help(h) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb', line 9

def host_create_help(h)
  h.section '--compute-attributes' do |h|
    h.list([
      ['cpus',   _('Number of CPUs')],
      ['memory', _('String, amount of memory, value in bytes')],
      ['start',  _('Boolean (expressed as 0 or 1), whether to start the machine or not')]
    ])
  end
  h.section '--interface' do |h|
    h.list([
      ['compute_type',                     _('Possible values: %s') % 'bridge, network'],
      ['compute_network / compute_bridge', _('Name of interface according to type')],
      ['compute_model',                    _('Possible values: %s') % 'virtio, rtl8139, ne2k_pci, pcnet, e1000']
    ])
  end
  h.section '--volume' do |h|
    h.list([
      ['pool_name',   _('One of available storage pools')],
      ['capacity',    _('String value, eg. 10G')],
      ['format_type', _('Possible values: %s') % 'raw, qcow2']
    ])
  end
end

#nameObject



5
6
7
# File 'lib/hammer_cli_foreman/compute_resources/libvirt/host_help_extenstion.rb', line 5

def name
  _('Libvirt')
end