Sha256: 9e7413d7f3519921e91373ab86f7459dcfcb44cb850450c261fd2ee49cc98588

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

require 'berkshelf/chef'

module Berkshelf::Mixin
  # @author Jamie Winsor <reset@riotgames.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)
      Berkshelf::Chef::Digester.checksum_for_file(file)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
berkshelf-1.2.0.rc1 lib/berkshelf/mixin/checksum.rb