class Specinfra::Command::Darwin::Base::User
Public Class Methods
check_has_home_directory(user, path_to_home)
click to toggle source
# 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
check_has_login_shell(user, path_to_shell)
click to toggle source
# File lib/specinfra/command/darwin/base/user.rb, line 7 def check_has_login_shell(user, path_to_shell) "finger #{escape(user)} | grep -E '^Directory' | awk '{ print $4 }' | grep -E '^#{escape(path_to_shell)}$'" end
get_home_directory(user)
click to toggle source
# File lib/specinfra/command/darwin/base/user.rb, line 11 def get_home_directory(user) "finger #{escape(user)} | grep -E '^Directory' | awk '{ print $2 }'" end