Class: Chef::Resource::Bincache
- Inherits:
-
Chef::Resource
- Object
- Chef::Resource
- Chef::Resource::Bincache
- Defined in:
- lib/bincache/resource/bincache.rb
Instance Method Summary collapse
- #cwd(arg = nil) ⇒ Object
- #directory(arg = nil) ⇒ Object
-
#initialize(name, run_context = nil) ⇒ Bincache
constructor
A new instance of Bincache.
- #script(arg = nil) ⇒ Object
- #script_hash(arg = nil) ⇒ Object
Constructor Details
#initialize(name, run_context = nil) ⇒ Bincache
Returns a new instance of Bincache.
7 8 9 10 11 12 |
# File 'lib/bincache/resource/bincache.rb', line 7 def initialize(name, run_context=nil) super @resource_name = :bincache @action = "run" @allowed_actions.push(:run) end |
Instance Method Details
#cwd(arg = nil) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/bincache/resource/bincache.rb', line 33 def cwd(arg=nil) set_or_return( :cwd, arg, :kind_of => String ) end |
#directory(arg = nil) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/bincache/resource/bincache.rb', line 24 def directory(arg=nil) set_or_return( :directory, arg, :kind_of => String ) end |
#script(arg = nil) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/bincache/resource/bincache.rb', line 15 def script(arg=nil) set_or_return( :script, arg, :kind_of => String ) end |
#script_hash(arg = nil) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/bincache/resource/bincache.rb', line 41 def script_hash(arg=nil) set_or_return( :script_hash, arg, :kind_of => String ) end |