Sha256: c1d28a30e3edec19ee87a43a7867f9d95eae9dccabc57c0867bdce14061e04e5

Contents?: true

Size: 782 Bytes

Versions: 52

Compression:

Stored size: 782 Bytes

Contents

class TestLab

  # User Error Class
  class UserError < TestLabError; end

  # User Class
  #
  # @author Zachary Patten <zachary AT jovelabs DOT com>
  class User < ZTK::DSL::Base

    # Sub-Modules
    autoload :Lifecycle,     'testlab/user/lifecycle'

    include TestLab::User::Lifecycle

    # Associations and Attributes
    belongs_to  :container,  :class_name => 'TestLab::Container'

    attribute   :username
    attribute   :password

    attribute   :identity
    attribute   :public_identity

    attribute   :uid
    attribute   :gid

    attribute   :primary,    :default => false

    def initialize(*args)
      @ui = TestLab.ui

      @ui.logger.debug { "Loading User" }
      super(*args)
      @ui.logger.debug { "User '#{self.id}' Loaded" }
    end

  end

end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
testlab-1.22.4 lib/testlab/user.rb
testlab-1.22.3 lib/testlab/user.rb
testlab-1.22.2 lib/testlab/user.rb
testlab-1.22.1 lib/testlab/user.rb
testlab-1.22.0 lib/testlab/user.rb
testlab-1.21.1 lib/testlab/user.rb
testlab-1.21.0 lib/testlab/user.rb
testlab-1.20.6 lib/testlab/user.rb
testlab-1.20.5 lib/testlab/user.rb
testlab-1.20.4 lib/testlab/user.rb
testlab-1.20.3 lib/testlab/user.rb
testlab-1.20.2 lib/testlab/user.rb
testlab-1.20.1 lib/testlab/user.rb
testlab-1.20.0 lib/testlab/user.rb
testlab-1.19.0 lib/testlab/user.rb
testlab-1.18.1 lib/testlab/user.rb
testlab-1.18.0 lib/testlab/user.rb
testlab-1.17.0 lib/testlab/user.rb
testlab-1.16.1 lib/testlab/user.rb
testlab-1.16.0 lib/testlab/user.rb