Class: Specinfra::Command::Freebsd::Base::Group
Class Method Summary
collapse
Methods inherited from Base::Group
check_exists, check_has_gid, get_gid
Methods inherited from Base
create, escape
Class Method Details
.add(group, options) ⇒ Object
7
8
9
10
11
12
|
# File 'lib/specinfra/command/freebsd/base/group.rb', line 7
def add(group, options)
command = %w[pw group add]
command << escape(group)
command << '-g' << escape(options[:gid]) if options[:gid]
command.join(' ')
end
|
.update_gid(group, gid) ⇒ Object
3
4
5
|
# File 'lib/specinfra/command/freebsd/base/group.rb', line 3
def update_gid(group, gid)
"pw groupmod #{escape(group)} -g #{escape(gid)}"
end
|