Module: R10K::Util::Downloader

Included in:
Tarball
Defined in:
lib/r10k/util/downloader.rb

Overview

Utility mixin for classes that need to download files

Instance Method Summary collapse

Instance Method Details

#checksum_algorithmSymbol

Downloader objects need to checksum downloaded or saved content. The algorithm used to perform this checksumming (and therefore the kinds of checksums returned by various methods) is reported by this method.

Returns:

  • (Symbol)

    The checksum algorithm the downloader uses



15
16
17
# File 'lib/r10k/util/downloader.rb', line 15

def checksum_algorithm
  @checksum_algorithm ||= :SHA256
end