class ChefVault::Certificate
Public Class Methods
new(vault, name)
click to toggle source
# File lib/chef-vault/certificate.rb, line 18 def initialize(vault, name) @item = ChefVault::Item.load(vault, name) end
Public Instance Methods
[](key)
click to toggle source
# File lib/chef-vault/certificate.rb, line 22 def [](key) @item[key] end
decrypt_contents()
click to toggle source
# File lib/chef-vault/certificate.rb, line 26 def decrypt_contents ChefVault::Log.warn "This method is deprecated, please switch to item['value'] calls" @item["contents"] end