Skip to content

Instantly share code, notes, and snippets.

@seth
Created June 2, 2011 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seth/1003725 to your computer and use it in GitHub Desktop.
Save seth/1003725 to your computer and use it in GitHub Desktop.
class Chef::EncryptedDataBagItem
def [](key)
value = @enc_hash[key]
if key == "id" || value.nil?
value
else
self.class.decrypt_value(value, @secret)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment