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

Author:

Instance Method Summary collapse

Instance Method Details

#checksum(file) ⇒ String

Parameters:

  • file (String)

Returns:

  • (String)

10
11
12
# File 'lib/ridley/mixin/checksum.rb', line 10

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