Exception: CMDB::EnvironmentConflict
- Defined in:
- lib/cmdb.rb
Overview
The CMDB is being exported to ENV, but one of its keys would overwrite a value that is already present in ENV. This should never happen, because the CMDB is designed to augment the environment by providing a place to store boring (static, non-secret) inputs, and a given input should be set either in the CMDB or the environment, never both.
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ EnvironmentConflict
constructor
A new instance of EnvironmentConflict.
Constructor Details
#initialize(key) ⇒ EnvironmentConflict
Returns a new instance of EnvironmentConflict.
122 123 124 125 |
# File 'lib/cmdb.rb', line 122 def initialize(key) @key = key super("#{key} is already present in the environment; cannot override with CMDB values") end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
120 121 122 |
# File 'lib/cmdb.rb', line 120 def key @key end |