# File lib/chef/resource/remote_file.rb, line 56 def checksum(args=nil) set_or_return( :checksum, args, :kind_of => String ) end
# File lib/chef/resource/remote_file.rb, line 48 def cookbook(args=nil) set_or_return( :cookbook, args, :kind_of => String ) end
The provider that should be used for this resource.
Chef::Provider::RemoteFile when the source is an absolute URI, like
http://www.google.com/robots.txt
Chef::Provider::CookbookFile when the source is a relative URI, like
'myscript.pl', 'dir/config.conf'
# File lib/chef/resource/remote_file.rb, line 70 def provider if absolute_uri?(source) Chef::Provider::RemoteFile else Chef::Log.warn("remote_file is deprecated for fetching files from cookbooks. Use cookbook_file instead") Chef::Log.warn("From #{self.to_s} on #{source_line}") Chef::Provider::CookbookFile end end
Generated with the Darkfish Rdoc Generator 2.