Method: Specinfra::Command::Darwin::Base::User.check_has_home_directory
- Defined in:
- lib/specinfra/command/darwin/base/user.rb
.check_has_home_directory(user, path_to_home) ⇒ Object
3 4 5 |
# File 'lib/specinfra/command/darwin/base/user.rb', line 3 def check_has_home_directory(user, path_to_home) "#{get_home_directory(user)} | grep -E '^#{escape(path_to_home)}$'" end |