Exception: CMDB::NameConflict
Overview
Two or more keys in different namespaces have an identical name. This isn’t an error when CMDB is used to refer to keys by their full, qualified name, but it can become an issue when loading keys into the environment for 12-factor apps to process.
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Instance Method Summary collapse
-
#initialize(env, keys) ⇒ NameConflict
constructor
A new instance of NameConflict.
Constructor Details
#initialize(env, keys) ⇒ NameConflict
Returns a new instance of NameConflict.
93 94 95 96 97 |
# File 'lib/cmdb.rb', line 93 def initialize(env, keys) @env = env @keys = keys super("#{env} corresponds to #{keys.size} different keys") end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
90 91 92 |
# File 'lib/cmdb.rb', line 90 def env @env end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
91 92 93 |
# File 'lib/cmdb.rb', line 91 def keys @keys end |