Sha256: d9223477146227a6c38d100f66277f38657bb050ebb593c6f379e9e00d7d56c2
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
module Terraformer module Credentials class Aws def self.get_from_options(options) credentials = {} %w(aws_region aws_access_key_id aws_secret_access_key).each do |key| aws_key = key.sub("aws_", "").to_sym credentials[aws_key] = options[key.to_sym].nil? ? options[key] : options[key.to_sym] credentials[aws_key] = ENV[key.upcase] if credentials[aws_key].nil? end credentials.reject{ |k, v| v.nil? } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terraform-exporter-0.0.2 | lib/terraformer/credentials/aws.rb |