lib/specinfra/command/base.rb in specinfra-1.16.0 vs lib/specinfra/command/base.rb in specinfra-1.17.0
- old
+ new
@@ -57,9 +57,13 @@
def check_file(file)
"test -f #{escape(file)}"
end
+ def get_file_mtime(file)
+ "stat -c %Y #{escape(file)}"
+ end
+
def check_socket(file)
"test -S #{escape(file)}"
end
def check_directory(directory)