Exception: Terraformer::Credentials::DatadogMissingCredentals

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/terraformer/credentials/datadog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ DatadogMissingCredentals

Returns a new instance of DatadogMissingCredentals.



6
7
8
9
10
# File 'lib/terraformer/credentials/datadog.rb', line 6

def initialize(key)
  @key = key

  super(message)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/terraformer/credentials/datadog.rb', line 4

def key
  @key
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/terraformer/credentials/datadog.rb', line 12

def message
  "'#{key}' not being passed. set it via CLI --#{key} or #{key.upcase} enviroment variable."
end