Sha256: 736424a0ffefbf37c97d7d0a5a009c1bf2eb2a625a416a851c1731448d47d27e

Contents?: true

Size: 318 Bytes

Versions: 59

Compression:

Stored size: 318 Bytes

Contents

module Ridley::Mixin
  # Inspired by and dependency-free replacement for
  # {https://github.com/opscode/chef/blob/11.4.0/lib/chef/mixin/checksum.rb}
  module Checksum
    # @param [String] file
    #
    # @return [String]
    def checksum(file)
      Ridley::Chef::Digester.checksum_for_file(file)
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
ridley-5.1.1 lib/ridley/mixin/checksum.rb
ridley-5.1.0 lib/ridley/mixin/checksum.rb
ridley-5.0.0 lib/ridley/mixin/checksum.rb
ridley-4.6.1 lib/ridley/mixin/checksum.rb
ridley-4.6.0 lib/ridley/mixin/checksum.rb
ridley-4.5.1 lib/ridley/mixin/checksum.rb
ridley-4.5.0 lib/ridley/mixin/checksum.rb
ridley-4.4.3 lib/ridley/mixin/checksum.rb
ridley-4.4.2 lib/ridley/mixin/checksum.rb
ridley-4.4.1 lib/ridley/mixin/checksum.rb
ridley-4.4.0 lib/ridley/mixin/checksum.rb
ridley-4.3.2 lib/ridley/mixin/checksum.rb
ridley-4.3.1 lib/ridley/mixin/checksum.rb
ridley-4.3.0 lib/ridley/mixin/checksum.rb
ridley-4.2.0 lib/ridley/mixin/checksum.rb
ridley-4.1.2 lib/ridley/mixin/checksum.rb
ridley-4.1.1 lib/ridley/mixin/checksum.rb
ridley-4.1.0 lib/ridley/mixin/checksum.rb
ridley-4.0.0 lib/ridley/mixin/checksum.rb
ridley-3.1.0 lib/ridley/mixin/checksum.rb