Method: Specinfra::Command::Darwin::Base::File.get_sha256sum
- Defined in:
- lib/specinfra/command/darwin/base/file.rb
permalink .get_sha256sum(file) ⇒ Object
[View source]
11 12 13 |
# File 'lib/specinfra/command/darwin/base/file.rb', line 11 def get_sha256sum(file) "ruby -e \"require 'digest'; puts Digest::SHA256.hexdigest File.read '#{escape(file)}'\"" end |