Method: Specinfra::Command::Base::User.check_has_home_directory

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

.check_has_home_directory(user, path_to_home) ⇒ Object


20
21
22
# File 'lib/specinfra/command/base/user.rb', line 20

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