Class: Specinfra::Command::Sles::V11::User

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

Class Method Summary collapse

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