lib/specinfra/command/base/file.rb in specinfra-2.34.9 vs lib/specinfra/command/base/file.rb in specinfra-2.35.0

- old
+ new

@@ -14,9 +14,17 @@ def check_is_socket(file) "test -S #{escape(file)}" end + def check_is_block_device(file) + "test -b #{escape(file)}" + end + + def check_is_character_device(file) + "test -c #{escape(file)}" + end + def check_is_symlink(file) "test -L #{escape(file)}" end def check_contains(file, expected_pattern)