Exception: Amplify::MissingDatabag

Inherits:
StandardError
  • Object
show all
Defined in:
lib/amplify/vault_data_bag_wrapper_base.rb

Instance Method Summary collapse

Constructor Details

#initialize(databag) ⇒ MissingDatabag

Returns a new instance of MissingDatabag.



71
72
73
74
75
76
77
78
# File 'lib/amplify/vault_data_bag_wrapper_base.rb', line 71

def initialize(databag)
  message = "  Couldn't find \#{databag[:name]}/\#{databag[:item]}\n  You should only get this error during local converge.\n  Check: test/chef/data_bags/\#{databag[:name]}/\#{databag[:item]}.json\n"
  super(message)
end