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-1.5.0 lib/ridley/mixin/checksum.rb
ridley-1.2.5 lib/ridley/mixin/checksum.rb
ridley-1.4.1 lib/ridley/mixin/checksum.rb
ridley-1.4.0 lib/ridley/mixin/checksum.rb
ridley-1.3.2 lib/ridley/mixin/checksum.rb
ridley-1.3.1 lib/ridley/mixin/checksum.rb
ridley-1.3.0 lib/ridley/mixin/checksum.rb
ridley-1.0.3 lib/ridley/mixin/checksum.rb
ridley-1.2.4 lib/ridley/mixin/checksum.rb
ridley-1.2.3 lib/ridley/mixin/checksum.rb
ridley-1.2.2 lib/ridley/mixin/checksum.rb
ridley-1.2.1 lib/ridley/mixin/checksum.rb
ridley-1.2.0 lib/ridley/mixin/checksum.rb
ridley-1.1.1 lib/ridley/mixin/checksum.rb
ridley-1.1.0 lib/ridley/mixin/checksum.rb
ridley-1.0.2 lib/ridley/mixin/checksum.rb
ridley-1.0.1 lib/ridley/mixin/checksum.rb
ridley-1.0.0 lib/ridley/mixin/checksum.rb
ridley-1.0.0.rc3 lib/ridley/mixin/checksum.rb