Exception: Chef::Sugar::DataBag::EncryptedDataBagSecretNotGiven

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chef/sugar/data_bag.rb

Instance Method Summary collapse

Constructor Details

#initializeEncryptedDataBagSecretNotGiven

Returns a new instance of EncryptedDataBagSecretNotGiven.



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/chef/sugar/data_bag.rb', line 21

def initialize
  super <<-EOH
You did not set your `encrypted_data_bag_secret'! In order to use the
`encrypted_data_bag_item' helper, you must load your encrypted data bag secret
into the `Chef::Config'.

Alternatively, you can pass the secret key as the last parameter to the method
call. For more information, please see
http://docs.opscode.com/chef/essentials_data_bags.html#access-from-recipe.
EOH
end