Sha256: 20846ef114a1608b770be5d7680cef401704316341931b625f2b4d83c1767f3b

Contents?: true

Size: 519 Bytes

Versions: 10

Compression:

Stored size: 519 Bytes

Contents

require "aws-sdk"

module Outliers
  module Providers
    module Aws
      module Shared

        def settings(args)
          @access_key_id     = args.fetch :access_key_id
          @secret_access_key = args.fetch :secret_access_key
          @region            = args.fetch :region, 'us-east-1'
        end

        def config
          { :access_key_id     => @access_key_id,
            :secret_access_key => @secret_access_key,
            :region            => @region }
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
outliers-0.6.0 lib/outliers/providers/aws/shared.rb
outliers-0.5.1 lib/outliers/providers/aws/shared.rb
outliers-0.5.0 lib/outliers/providers/aws/shared.rb
outliers-0.5.0.beta3 lib/outliers/providers/aws/shared.rb
outliers-0.5.0.beta2 lib/outliers/providers/aws/shared.rb
outliers-0.5.0.beta1 lib/outliers/providers/aws/shared.rb
outliers-0.3.3 lib/outliers/providers/aws/shared.rb
outliers-0.3.2 lib/outliers/providers/aws/shared.rb
outliers-0.3.1 lib/outliers/providers/aws/shared.rb
outliers-0.3.0 lib/outliers/providers/aws/shared.rb