Method: Specinfra::Command::Solaris::Base::User.check_has_home_directory
- Defined in:
- lib/specinfra/command/solaris/base/user.rb
permalink .check_has_home_directory(user, path_to_home) ⇒ Object
[View source]
7 8 9 |
# File 'lib/specinfra/command/solaris/base/user.rb', line 7 def check_has_home_directory(user, path_to_home) "getent passwd #{escape(user)} | cut -f 6 -d ':' | grep -w -- #{escape(path_to_home)}" end |