Sha256: 7e1051fbb7b41460b01cf602741c5c41807059fb57972cdf619c12690212ad60

Contents?: true

Size: 487 Bytes

Versions: 9

Compression:

Stored size: 487 Bytes

Contents

module Capistrano
  module Autoscale
    module Aws
      module Credentials
        include Capistrano::DSL

        def credentials
          credentials = {
              access_key_id: fetch(:aws_access_key_id, ENV['AWS_ACCESS_KEY_ID']),
              secret_access_key: fetch(:aws_secret_access_key, ENV['AWS_SECRET_ACCESS_KEY'])
          }
          credentials.merge! region: fetch(:aws_region) if fetch(:aws_region)
          credentials
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
capistrano-autoscale-1.0.8 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.7 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.6 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.5 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.4 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.3 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.2 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.1 lib/capistrano/autoscale/aws/credentials.rb
capistrano-autoscale-1.0.0 lib/capistrano/autoscale/aws/credentials.rb