Class: Specinfra::Command::Aix::Base::Group
- Inherits:
-
Base::Group
- Object
- Base
- Base::Group
- Specinfra::Command::Aix::Base::Group
- Defined in:
- lib/specinfra/command/aix/base/group.rb
Class Method Summary collapse
Methods inherited from Base::Group
Methods inherited from Base
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 |