Method: Specinfra::Command::Freebsd::V6::User.check_has_login_shell
- Defined in:
- lib/specinfra/command/freebsd/v6/user.rb
.check_has_login_shell(user, path_to_shell) ⇒ Object
7 8 9 |
# File 'lib/specinfra/command/freebsd/v6/user.rb', line 7 def check_has_login_shell(user, path_to_shell) "pw user show #{escape(user)} | cut -f 10 -d ':' | grep -w -- #{escape(path_to_shell)}" end |