Class: Specinfra::Command::Solaris::V11::User

Inherits:
Base::User show all
Defined in:
lib/specinfra/command/solaris/v11/user.rb

Class Method Summary collapse

Methods inherited from Base::User

check_belongs_to_group, check_has_home_directory, check_has_login_shell

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, check_is_system_user, 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



7
8
9
# File 'lib/specinfra/command/solaris/v11/user.rb', line 7

def get_maximum_days_between_password_change(user)
  "passwd -s #{escape(user)} | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '5q;d'"
end

.get_minimum_days_between_password_change(user) ⇒ Object



3
4
5
# File 'lib/specinfra/command/solaris/v11/user.rb', line 3

def get_minimum_days_between_password_change(user)
  "passwd -s #{escape(user)} | sed 's/ \\{1,\\}/%/g' | tr '%' '\n' | sed '4q;d'"
end