lib/specinfra/command/base/user.rb in specinfra-2.0.0.beta11 vs lib/specinfra/command/base/user.rb in specinfra-2.0.0.beta12

- old
+ new

@@ -1,14 +1,14 @@ class Specinfra::Command::Base::User < Specinfra::Command::Base def check_exists(user) "id #{escape(user)}" end - def check_is_belonging_to_group(user, group) + def check_belongs_to_group(user, group) "id #{escape(user)} | awk '{print $3}' | grep -- #{escape(group)}" end - def check_is_belonging_to_primary_group(user, group) + def check_belongs_to_primary_group(user, group) "id -gn #{escape(user)}| grep ^#{escape(group)}$" end def check_has_uid(user, uid) regexp = "^uid=#{uid}("