lib/specinfra/command/base/file.rb in specinfra-2.8.0 vs lib/specinfra/command/base/file.rb in specinfra-2.9.0
- old
+ new
@@ -10,9 +10,13 @@
def check_is_socket(file)
"test -S #{escape(file)}"
end
+ def check_is_symlink(file)
+ "test -L #{escape(file)}"
+ end
+
def check_contains(file, expected_pattern)
"#{check_contains_with_regexp(file, expected_pattern)} || #{check_contains_with_fixed_strings(file, expected_pattern)}"
end
def check_is_grouped(file, group)