Class: ChefVault::User
- Inherits:
-
Object
- Object
- ChefVault::User
- Defined in:
- lib/chef-vault/user.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #decrypt_password ⇒ Object
-
#initialize(vault, username) ⇒ User
constructor
A new instance of User.
Constructor Details
Instance Method Details
#[](key) ⇒ Object
22 23 24 |
# File 'lib/chef-vault/user.rb', line 22 def [](key) @item[key] end |
#decrypt_password ⇒ Object
26 27 28 29 |
# File 'lib/chef-vault/user.rb', line 26 def decrypt_password $stdout.puts "WARNING: This method is deprecated, please switch to item['value'] calls" @item["password"] end |