Module: Ridley::Mixin::Checksum

Included in:
Chef::Cookbook::SyntaxCheck
Defined in:
lib/ridley/mixin/checksum.rb

Overview

Inspired by and dependency-free replacement for https://github.com/opscode/chef/blob/11.4.0/lib/chef/mixin/checksum.rb

Instance Method Summary collapse

Instance Method Details

#checksum(file) ⇒ String

Parameters:

  • file (String)

Returns:

  • (String)


8
9
10
# File 'lib/ridley/mixin/checksum.rb', line 8

def checksum(file)
  Ridley::Chef::Digester.checksum_for_file(file)
end