Class: ChefKeepass
- Inherits:
-
Object
- Object
- ChefKeepass
- Defined in:
- lib/chef-keepass.rb,
lib/chef-keepass/user.rb,
lib/chef-keepass/version.rb,
lib/chef-keepass/certificate.rb
Defined Under Namespace
Classes: Certificate, User
Constant Summary collapse
- VERSION =
"0.2.1"
Instance Attribute Summary collapse
-
#data_bag ⇒ Object
Returns the value of attribute data_bag.
Instance Method Summary collapse
- #certificate(name) ⇒ Object
-
#initialize(data_bag) ⇒ ChefKeepass
constructor
A new instance of ChefKeepass.
- #user(username) ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(data_bag) ⇒ ChefKeepass
Returns a new instance of ChefKeepass.
28 29 30 |
# File 'lib/chef-keepass.rb', line 28 def initialize(data_bag) @data_bag = data_bag end |
Instance Attribute Details
#data_bag ⇒ Object
Returns the value of attribute data_bag.
26 27 28 |
# File 'lib/chef-keepass.rb', line 26 def data_bag @data_bag end |
Instance Method Details
#certificate(name) ⇒ Object
40 41 42 |
# File 'lib/chef-keepass.rb', line 40 def certificate(name) ChefKeepass::Certificate.new(@data_bag, name) end |
#user(username) ⇒ Object
36 37 38 |
# File 'lib/chef-keepass.rb', line 36 def user(username) ChefKeepass::User.new(@data_bag, username) end |
#version ⇒ Object
32 33 34 |
# File 'lib/chef-keepass.rb', line 32 def version VERSION end |