require 'digest/md5'

class Puppet::Provider::Remote_file < Puppet::Provider
  def destroy
    File.unlink @resource[:name]
  end

  def exists?
    if File.file? @resource[:name]
      if cs = @resource[:checksum]
        Digest::MD5.file(@resource[:name]) == cs
      else
        true
      end
    end
  end
end

require 'digest/md5'

class Puppet::Provider::Remote_file < Puppet::Provider
  def destroy
    File.unlink @resource[:path]
  end

  def exists?
    if File.file? @resource[:path]
      if cs = @resource[:checksum]
        Digest::MD5.file(@resource[:path]) == cs
      else
        true
      end
    end
  end
end

Fix missed name=>path parameter rename symbols
Fix missed name=>path parameter rename symbols

When the name parameter was renamed path (which became the namevar),
these explicit references to the parameter were missed. This commit
changes the :name references to :path. This is necessary to prevent
inconsistent behavior when using ensure=absent, or possibly when
specifying both name and path simultaneously.
