Class: ChefKeepass

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_bagObject

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

#versionObject



32
33
34
# File 'lib/chef-keepass.rb', line 32

def version
  VERSION
end