Sha256: efcb6a04d9004788eb5a72365533c0892a0c4dbc5ccf85b3a52db3b763ef811d

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 Bytes

Contents

module SimpleDeploy
  class AWS
    module Helpers

      def connection_args
        {
          aws_access_key_id:     @config.access_key,
          aws_secret_access_key: @config.secret_key,
          region:                @config.region
        }.tap do |a|

          if @config.temporary_credentials?
            a.merge!({ aws_session_token: @config.security_token })
          end
        end
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_deploy-0.10.2 lib/simple_deploy/aws/helpers.rb
simple_deploy-0.10.1 lib/simple_deploy/aws/helpers.rb
simple_deploy-0.10.0 lib/simple_deploy/aws/helpers.rb
simple_deploy-0.10.0.beta.3 lib/simple_deploy/aws/helpers.rb
simple_deploy-0.10.0.beta.2 lib/simple_deploy/aws/helpers.rb
simple_deploy-0.10.0.beta.1 lib/simple_deploy/aws/helpers.rb