Method: Chef::Resource::RemoteFile#initialize

Defined in:
lib/chef/resource/remote_file.rb

#initialize(name, collection = nil, node = nil) ⇒ RemoteFile

Returns a new instance of RemoteFile.



25
26
27
28
29
30
31
# File 'lib/chef/resource/remote_file.rb', line 25

def initialize(name, collection=nil, node=nil)
  super(name, collection, node)
  @resource_name = :remote_file
  @action = "create"
  @source = ::File.basename(name)
  @cookbook = nil
end