Method: Specinfra::Command::Aix::Base::User.check_has_login_shell

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

.check_has_login_shell(user, path_to_shell) ⇒ Object


7
8
9
# File 'lib/specinfra/command/aix/base/user.rb', line 7

def (user, path_to_shell)
  "lsuser -a shell #{escape(user)} |awk -F'=' '{print $2}' | grep -w -- #{escape(path_to_shell)}"
end