Sha256: 833f3d67e45c98be6057d847e94d493150cdefda4755a083343d05ebe6627c9a

Contents?: true

Size: 816 Bytes

Versions: 2

Compression:

Stored size: 816 Bytes

Contents

class RegisteredProvider
  class Aws < RegisteredProvider
    def self.load_registered_providers
      return unless super

      transaction do
        [
          set('AWS', '1072ddc9-e04f-4d43-929b-8866ce7e6d3a')
        ].each { |s| create! s.merge!(type: 'RegisteredProvider::Aws') }
      end
    end

    def provider_class
      'Provider::Aws'.constantize
    end

    def description
      'Amazon Web Services'
    end

    def tags
      ['aws']
    end

    def questions
      [
        { name: :access_id, value_type: :string, field: :text, label: 'Access ID', required: true },
        { name: :secret_key, value_type: :password, field: :password, label: 'Secret Key', required: :if_new },
        { name: :region, value_type: :string, field: :aws_regions, required: true }
      ]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jellyfish-aws-0.0.2 app/models/registered_provider/aws.rb
jellyfish-aws-0.0.1 app/models/registered_provider/aws.rb