class HammerCLIForeman::ComputeResources::EC2

Public Instance Methods

compute_attributes() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ec2.rb, line 8
def compute_attributes
  %w[availability_zone flavor_id groups security_group_ids managed_ip]
end
mandatory_resource_options() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ec2.rb, line 29
def mandatory_resource_options
  super + %i[region user password]
end
name() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ec2.rb, line 4
def name
  'EC2'
end
provider_specific_fields() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ec2.rb, line 12
def provider_specific_fields
  super + [
    Fields::Field.new(:label => _('Region'), :path => [:region])
  ]
end
provider_vm_specific_fields() click to toggle source
# File lib/hammer_cli_foreman/compute_resource/ec2.rb, line 18
def provider_vm_specific_fields
  [
    Fields::Field.new(:label => _('DNS'), :path => [:dns_name]),
    Fields::Field.new(:label => _('Type'), :path => [:flavor_id]),
    Fields::Field.new(:label => _('State'), :path => [:state]),
    Fields::Field.new(:label => _('Owner Id'), :path => [:ownerId]),
    Fields::Field.new(:label => _('DNS Name'), :path => [:dns_name]),
    Fields::Field.new(:label => _('Virtualization Type'), :path => [:virtualization_type])
  ]
end