class Serverspec::Type::User

Public Instance Methods

belongs_to_group?(group) click to toggle source
# File lib/serverspec/type/user.rb, line 7
def belongs_to_group?(group)
  @runner.check_user_belongs_to_group(@name, group)
end
belongs_to_primary_group?(group) click to toggle source
# File lib/serverspec/type/user.rb, line 11
def belongs_to_primary_group?(group)
  @runner.check_user_belongs_to_primary_group(@name, group)
end
encrypted_password() click to toggle source
# File lib/serverspec/type/user.rb, line 43
def encrypted_password
  @runner.get_user_encrypted_password(@name).stdout.strip
end
exists?() click to toggle source
# File lib/serverspec/type/user.rb, line 3
def exists?
  @runner.check_user_exists(@name)
end
has_authorized_key?(key) click to toggle source
# File lib/serverspec/type/user.rb, line 31
def has_authorized_key?(key)
  @runner.check_user_has_authorized_key(@name, key)
end
has_home_directory?(path) click to toggle source
# File lib/serverspec/type/user.rb, line 23
def has_home_directory?(path)
  @runner.check_user_has_home_directory(@name, path)
end
has_login_shell?(shell) click to toggle source
# File lib/serverspec/type/user.rb, line 27
def has_login_shell?(shell)
  @runner.check_user_has_login_shell(@name, shell)
end
has_uid?(uid) click to toggle source
# File lib/serverspec/type/user.rb, line 19
def has_uid?(uid)
  @runner.check_user_has_uid(@name, uid)
end
maximum_days_between_password_change() click to toggle source
# File lib/serverspec/type/user.rb, line 39
def maximum_days_between_password_change
  @runner.get_user_maximum_days_between_password_change(@name).stdout.to_i
end
minimum_days_between_password_change() click to toggle source
# File lib/serverspec/type/user.rb, line 35
def minimum_days_between_password_change
  @runner.get_user_minimum_days_between_password_change(@name).stdout.to_i
end
uid() click to toggle source
# File lib/serverspec/type/user.rb, line 15
def uid
  @runner.get_user_uid(@name).stdout.to_i
end