Class: HammerCLIForeman::ComputeResources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli_foreman/compute_resource/base.rb

Direct Known Subclasses

EC2, GCE, Libvirt, OpenStack, Ovirt, Rackspace, VMware

Instance Method Summary collapse

Instance Method Details

#compute_attributesObject



5
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 5

def compute_attributes; []; end

#host_attributesObject



9
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 9

def host_attributes; []; end

#interface_attributesObject

all attributes must start with compute_



6
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 6

def interface_attributes; []; end

#interfaces_attrs_nameObject



8
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 8

def interfaces_attrs_name; 'interfaces_attributes'; end

#mandatory_resource_optionsObject



15
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 15

def mandatory_resource_options; %i[name provider]; end

#nameObject



4
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 4

def name; ''; end

#provider_specific_fieldsObject



10
11
12
13
14
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 10

def provider_specific_fields
  [
    Fields::Field.new(label: _('Url'), path: [:url]) 
  ]
end

#volume_attributesObject



7
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 7

def volume_attributes; []; end