Class: Specinfra::Command::Aix::Base::Group

Inherits:
Base::Group show all
Defined in:
lib/specinfra/command/aix/base/group.rb

Class Method Summary collapse

Methods inherited from Base::Group

add, check_exists, get_gid, update_gid

Methods inherited from Base

create, escape

Class Method Details

.check_has_gid(group, gid) ⇒ Object



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

def check_has_gid(group, gid)
  regexp = "^#{group}"
  "cat etc/group | grep -w -- #{escape(regexp)} | cut -f 3 -d ':' | grep -w -- #{escape(gid)}"
end