lib/garcon/chef/provider/download.rb
# Load and return the current resource.
#
# @return [Chef::Provider::Download]
#
# @api private
Load and return the current resource.
Load and return the current resource .
def load_current_resource
        @current_resource ||= Chef::Resource::Download.new(r.name)
        @current_resource.path(r.path)
        if ::File.exist?(@current_resource.path)
          @current_resource.checksum(checksum(@current_resource.path))
          if @current_resource.checksum == r.checksum
            @current_resource.exist = true
          else
            @current_resource.exist = false
          end
        else
          @current_resource.exist = false
        end
        @current_resource
      end
def load_current_resource @current_resource ||= Chef :: Resource :: Download . new ( r . name ) @current_resource . path ( r . path ) if :: File . exist? ( @current_resource . path ) @current_resource . checksum ( checksum ( @current_resource . path ) ) if @current_resource . checksum == r . checksum @current_resource . exist = true else @current_resource . exist = false end else @current_resource . exist = false end @current_resource end
Load and return the current resource.
Load and return the current resource .
None
Chef::Provider::Download
api
None