Method: Specinfra::Command::Darwin::Base::File.check_is_grouped

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

.check_is_grouped(file, group) ⇒ Object


29
30
31
32
# File 'lib/specinfra/command/darwin/base/file.rb', line 29

def check_is_grouped(file, group)
  regexp = "^#{group}$"
  "stat -f %Sg #{escape(file)} | grep -- #{escape(regexp)}"
end