Method: Specinfra::Command::Freebsd::Base::File.check_has_mode

Defined in:
lib/specinfra/command/freebsd/base/file.rb

.check_has_mode(file, mode) ⇒ Object


21
22
23
# File 'lib/specinfra/command/freebsd/base/file.rb', line 21

def check_has_mode(file, mode)
  "test `stat -f%Mp%Lp #{escape(file)} | sed 's/^0*//'` -eq #{escape(mode)}"
end