Class: HammerCLIForeman::ComputeResources::Ovirt::HostHelpExtenstion

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli_foreman/compute_resources/ovirt/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
32
# File 'lib/hammer_cli_foreman/compute_resources/ovirt/host_help_extenstion.rb', line 9

def host_create_help(h)
  h.section '--compute-attributes' do |h|
    h.list([
      ['cluster'],
      ['template', _('Hardware profile to use')],
      ['cores',    _('Integer value, number of cores')],
      ['memory',   _('Amount of memory, integer 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_name',    _('Eg. eth0')],
      ['compute_network', _('Select one of available networks for a cluster')]
    ])
  end
  h.section '--volume' do |h|
    h.list([
      ['size_gb',        _('Volume size in GB, integer value')],
      ['storage_domain', _('Select one of available storage domains')],
      ['bootable',       _('Boolean, only one volume can be bootable')]
    ])
  end
end

#nameObject



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

def name
  _('oVirt')
end