Sha256: 1dea5738665711921a6c2aba4d3e7bb83f9b52a889763cb28d82548d8d325ef4

Contents?: true

Size: 371 Bytes

Versions: 5

Compression:

Stored size: 371 Bytes

Contents

module Ridley::Mixin
  # @author Jamie Winsor <jamie@vialstudios.com>
  #
  # 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

5 entries across 5 versions & 1 rubygems

Version Path
ridley-0.8.3 lib/ridley/mixin/checksum.rb
ridley-0.8.2 lib/ridley/mixin/checksum.rb
ridley-0.8.1 lib/ridley/mixin/checksum.rb
ridley-0.8.0 lib/ridley/mixin/checksum.rb
ridley-0.7.0 lib/ridley/mixin/checksum.rb