lib/specinfra/command/base/file.rb in specinfra-2.0.0.beta20 vs lib/specinfra/command/base/file.rb in specinfra-2.0.0.beta21

- old
+ new

@@ -80,9 +80,17 @@ def get_mode(file) "stat -c %a #{escape(file)}" end + def get_owner_user(file) + "stat -c %U #{escape(file)}" + end + + def get_owner_group(file) + "stat -c %G #{escape(file)}" + end + def check_is_linked_to(link, target) "stat -c %N #{escape(link)} | egrep -e \"-> .#{escape(target)}.\"" end def get_mtime(file)