Exception: CMDB::NameConflict
Overview
Two or more keys in prefixed sources have an identical name. This isn’t an error when CMDB is used to refer to keys by their full, prefixed 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.
106 107 108 109 110 |
# File 'lib/cmdb.rb', line 106 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.
103 104 105 |
# File 'lib/cmdb.rb', line 103 def env @env end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
104 105 106 |
# File 'lib/cmdb.rb', line 104 def keys @keys end |