class HammerCLIForeman::ComputeResources::Ovirt::HostHelpExtenstion

Public Instance Methods

host_create_help(h) click to toggle source
# 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
name() click to toggle source
# File lib/hammer_cli_foreman/compute_resources/ovirt/host_help_extenstion.rb, line 5
def name
  _('oVirt')
end