lib/specinfra/command/solaris/v10/file.rb in specinfra-2.0.0.beta11 vs lib/specinfra/command/solaris/v10/file.rb in specinfra-2.0.0.beta12

- old
+ new

@@ -1,7 +1,7 @@ class Specinfra::Command::Solaris::V10::File < Specinfra::Command::Solaris::Base::File # reference: http://perldoc.perl.org/functions/stat.html - def check_mode(file, mode) + def check_has_mode(file, mode) regexp = "^#{mode}$" "perl -e 'printf \"%o\", (stat shift)[2]&07777' #{escape(file)} | grep -- #{escape(regexp)}" end # reference: http://perldoc.perl.org/functions/stat.html