Exception: Terraformer::Credentials::AwsMissingCredentals

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ AwsMissingCredentals

Returns a new instance of AwsMissingCredentals.



6
7
8
9
10
# File 'lib/terraformer/credentials/aws.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/aws.rb', line 4

def key
  @key
end

Instance Method Details

#messageObject



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

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