Exception: CMDB::NameConflict

Inherits:
Error
  • Object
show all
Defined in:
lib/cmdb.rb

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

Instance Method Summary collapse

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

#envObject (readonly)

Returns the value of attribute env.



90
91
92
# File 'lib/cmdb.rb', line 90

def env
  @env
end

#keysObject (readonly)

Returns the value of attribute keys.



91
92
93
# File 'lib/cmdb.rb', line 91

def keys
  @keys
end