Sha256: 32f6519be167f461914597a948547eb59d4d71360763bfd93678293f46bf9ee2
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
module Terraformer module Credentials class Datadog def self.get_from_options(options) credentials = {} %w(datadog_api_key datadog_app_key).each do |key| datadog_key = key.sub("datadog_", "").to_sym credentials[datadog_key] = options[key.to_sym].nil? ? options[key] : options[key.to_sym] credentials[datadog_key] = ENV[key.upcase] if credentials[datadog_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/datadog.rb |