lib/specinfra/command/base/file.rb in specinfra-2.31.1 vs lib/specinfra/command/base/file.rb in specinfra-2.32.0

- old
+ new

@@ -74,9 +74,13 @@ def check_contains_with_fixed_strings(file, expected_pattern) "grep -qFs -- #{escape(expected_pattern)} #{escape(file)}" end + def check_exists(file) + "test -e #{escape(file)}" + end + def get_md5sum(file) "md5sum #{escape(file)} | cut -d ' ' -f 1" end def get_sha256sum(file)