Method: Chef::Resource::File#initialize
- Defined in:
- lib/chef/resource/file.rb
#initialize(name, run_context = nil) ⇒ File
Returns a new instance of File.
41 42 43 44 45 46 47 48 49 50 |
# 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 |