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 = <<ERRORMESSAGE
  Couldn't find #{databag[:name]}/#{databag[:item]}
  You should only get this error during local converge.
  Check: test/chef/data_bags/#{databag[:name]}/#{databag[:item]}.json
ERRORMESSAGE
  super(message)
end