Method: Specinfra::Command::Base::User.check_belongs_to_primary_group

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

.check_belongs_to_primary_group(user, group) ⇒ Object


11
12
13
# File 'lib/specinfra/command/base/user.rb', line 11

def check_belongs_to_primary_group(user, group)
  "id -gn #{escape(user)}| grep ^#{escape(group)}$"
end