Sha256: 55eba73f914cc8dd3e444fb4d9de63289c78c6b33ea9681a6b123f261fce0dc0

Contents?: true

Size: 535 Bytes

Versions: 6

Compression:

Stored size: 535 Bytes

Contents

module HammerCLIForeman
  module ComputeResources
    class EC2 < Base
      def name
        'EC2'
      end

      def compute_attributes
        %w[availability_zone flavor_id groups security_group_ids managed_ip]
      end

      def provider_specific_fields
        [
          Fields::Field.new(:label => _('Region'), :path => [:region])
        ]
      end

      def mandatory_resource_options
        super + %i[region user password]
      end
    end

    HammerCLIForeman.register_compute_resource('ec2', EC2.new)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hammer_cli_foreman-0.19.5 lib/hammer_cli_foreman/compute_resource/ec2.rb
hammer_cli_foreman-0.19.4 lib/hammer_cli_foreman/compute_resource/ec2.rb
hammer_cli_foreman-0.19.3 lib/hammer_cli_foreman/compute_resource/ec2.rb
hammer_cli_foreman-0.19.2 lib/hammer_cli_foreman/compute_resource/ec2.rb
hammer_cli_foreman-0.19.1 lib/hammer_cli_foreman/compute_resource/ec2.rb
hammer_cli_foreman-0.19.0 lib/hammer_cli_foreman/compute_resource/ec2.rb