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

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

.check_is_grouped(file, group) ⇒ Object


25
26
27
28
# File 'lib/specinfra/command/openbsd/base/file.rb', line 25

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