Class: Specinfra::Command::Freebsd::Base::User
Class Method Summary
collapse
Methods inherited from Base::User
add, check_belongs_to_group, check_belongs_to_primary_group, check_exists, check_has_authorized_key, check_has_home_directory, check_has_login_shell, check_has_uid, get_encrypted_password, get_gid, get_home_directory, get_login_shell, get_uid, update_encrypted_password, update_gid, update_home_directory, update_login_shell, update_uid
Methods inherited from Base
create, escape
Class Method Details
.get_maximum_days_between_password_change(user) ⇒ Object
8
9
10
|
# File 'lib/specinfra/command/freebsd/base/user.rb', line 8
def get_maximum_days_between_password_change(user)
"pw usershow -n #{escape(user)} | cut -d':' -f 6"
end
|
.get_minimum_days_between_password_change(user) ⇒ Object
4
5
6
|
# File 'lib/specinfra/command/freebsd/base/user.rb', line 4
def get_minimum_days_between_password_change(user)
"0"
end
|