Exception: CMDB::NameConflict

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

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

Instance Method Summary collapse

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

#envObject (readonly)

Returns the value of attribute env.



103
104
105
# File 'lib/cmdb.rb', line 103

def env
  @env
end

#keysObject (readonly)

Returns the value of attribute keys.



104
105
106
# File 'lib/cmdb.rb', line 104

def keys
  @keys
end