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

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

.check_is_grouped(file, group) ⇒ Object


3
4
5
6
# File 'lib/specinfra/command/freebsd/base/file.rb', line 3

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