Class: HammerCLIForeman::ComputeResources::Base
- Inherits:
-
Object
- Object
- HammerCLIForeman::ComputeResources::Base
show all
- Defined in:
- lib/hammer_cli_foreman/compute_resource/base.rb
Instance Method Summary
collapse
Instance Method Details
#compute_attributes ⇒ Object
5
|
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 5
def compute_attributes; []; end
|
#host_attributes ⇒ Object
9
|
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 9
def host_attributes; []; end
|
#interface_attributes ⇒ Object
all attributes must start with compute_
6
|
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 6
def interface_attributes; []; end
|
#interfaces_attrs_name ⇒ Object
8
|
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 8
def interfaces_attrs_name; 'interfaces_attributes'; end
|
#mandatory_resource_options ⇒ Object
15
|
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 15
def mandatory_resource_options; %i[name provider]; end
|
#name ⇒ Object
4
|
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 4
def name; ''; end
|
#provider_specific_fields ⇒ Object
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_attributes ⇒ Object
7
|
# File 'lib/hammer_cli_foreman/compute_resource/base.rb', line 7
def volume_attributes; []; end
|