Class: Specinfra::Command::Sles::V11::User
- Inherits:
-
Base::User
- Object
- Base::User
- Specinfra::Command::Sles::V11::User
- Defined in:
- lib/specinfra/command/sles/v11/user.rb
Class Method Summary collapse
- .get_maximum_days_between_password_change(user) ⇒ Object
- .get_minimum_days_between_password_change(user) ⇒ Object
Class Method Details
.get_maximum_days_between_password_change(user) ⇒ Object
7 8 9 |
# File 'lib/specinfra/command/sles/v11/user.rb', line 7 def get_maximum_days_between_password_change(user) "chage -l #{escape(user)} | sed -n 's/^Maximum://p' | sed 's|^[[:blank:]]*||g'" end |
.get_minimum_days_between_password_change(user) ⇒ Object
3 4 5 |
# File 'lib/specinfra/command/sles/v11/user.rb', line 3 def get_minimum_days_between_password_change(user) "chage -l #{escape(user)} | sed -n 's/^Minimum://p' | sed 's|^[[:blank:]]*||g'" end |