class Vanagon::Common::User

Attributes

group[RW]
homedir[RW]
is_system[RW]
name[RW]
shell[RW]

Public Class Methods

new(name, group = nil, shell = nil, is_system = false, homedir = nil) click to toggle source
# File lib/vanagon/common/user.rb, line 6
def initialize(name, group = nil, shell = nil, is_system = false, homedir = nil)
  @name = name
  @group = group ? group : @name
  @shell = shell if shell
  @is_system = is_system if is_system
  @homedir = homedir if homedir
end

Public Instance Methods

==(other) click to toggle source

Equality. How does it even work?

@return [true, false] true if all attributes have equal values. false otherwise.

# File lib/vanagon/common/user.rb, line 17
def ==(other)
  other.name == self.name && \
    other.group == self.group && \
    other.shell == self.shell && \
    other.is_system == self.is_system && \
    other.homedir == self.homedir
end