Chef::Resource
# File lib/chef/resource/ruby_block.rb, line 26 def initialize(name, run_context=nil) super @resource_name = :ruby_block @action = "create" @allowed_actions.push(:create) @block_name = name end
# File lib/chef/resource/ruby_block.rb, line 34 def block(&block) if block_given? and block @block = block else @block end end
# File lib/chef/resource/ruby_block.rb, line 42 def block_name(arg=nil) set_or_return( :block_name, arg, :kind_of => String ) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.