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, get_gid, update_gid

Methods inherited from Base

create, escape

Class Method Details

.check_exists(group) ⇒ Object



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

def check_exists(group)
  "lsgroup #{escape(group)}"
end

.check_has_gid(group, gid) ⇒ Object



8
9
10
# File 'lib/specinfra/command/aix/base/group.rb', line 8

def check_has_gid(group, gid)
  "lsgroup -a id #{escape(group)} | cut -f 2 -d '=' | grep -w -- #{escape(gid)}"
end