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

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

.check_has_login_shell(user, path_to_shell) ⇒ Object


24
25
26
# File 'lib/specinfra/command/base/user.rb', line 24

def (user, path_to_shell)
  "getent passwd #{escape(user)} | cut -f 7 -d ':' | grep -w -- #{escape(path_to_shell)}"
end