lib/puppet/provider/archive/default.rb
# Private: See if local archive checksum matches.
# returns boolean
See if local archive checksum matches.
returns boolean
See if local archive checksum matches . returns boolean
def checksum?(store_checksum=true)
    archive_exist = File.exists? archive_filepath
    if archive_exist and resource[:checksum_type] != :none
      archive = PuppetX::Bodeco::Archive.new(archive_filepath)
      archive_checksum = archive.checksum(resource[:checksum_type])
      @archive_checksum = archive_checksum if store_checksum
      checksum == archive_checksum
    else
      archive_exist
    end
  end
def checksum? ( store_checksum = true ) archive_exist = File . exists? archive_filepath if archive_exist and resource [ :checksum_type ] != :none archive = PuppetX :: Bodeco :: Archive . new ( archive_filepath ) archive_checksum = archive . checksum ( resource [ :checksum_type ] ) @archive_checksum = archive_checksum if store_checksum checksum == archive_checksum else archive_exist end end
Private: See if local archive checksum matches.
Private : See if local archive checksum matches .
store_checksum