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