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

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

.check_is_grouped(file, group) ⇒ Object


16
17
18
19
# File 'lib/specinfra/command/aix/base/file.rb', line 16

def check_is_grouped(file, group)
  regexp = "^#{group}$"
  "ls -al #{escape(file)} | awk '{print $4}' | grep -- #{escape(regexp)}"
end