# File lib/chef/resource/file.rb, line 41 def initialize(name, run_context=nil) super @resource_name = :file @path = name @backup = 5 @action = "create" @allowed_actions.push(:create, :delete, :touch, :create_if_missing) @provider = Chef::Provider::File @diff = nil end
# File lib/chef/resource/file.rb, line 61 def backup(arg=nil) set_or_return( :backup, arg, :kind_of => [ Integer, FalseClass ] ) end
# File lib/chef/resource/file.rb, line 69 def checksum(arg=nil) set_or_return( :checksum, arg, :regex => /^[a-zA-Z0-9]{64}$/ ) end
# File lib/chef/resource/file.rb, line 53 def content(arg=nil) set_or_return( :content, arg, :kind_of => String ) end
Generated with the Darkfish Rdoc Generator 2.