Method: Specinfra::Command::Solaris::Base::User.check_belongs_to_group

Defined in:
lib/specinfra/command/solaris/base/user.rb

.check_belongs_to_group(user, group) ⇒ Object

[View source]

3
4
5
# File 'lib/specinfra/command/solaris/base/user.rb', line 3

def check_belongs_to_group(user, group)
  "id -Gn #{escape(user)} | grep -- #{escape(group)}"
end