Sha256: aa4b464696d0d944696376ff85630fc49c24f3d95cebbd282615dd16a1894544

Contents?: true

Size: 740 Bytes

Versions: 15

Compression:

Stored size: 740 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

      super(*args)

      @ui.logger.info { "User '#{self.id}' Loaded" }
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
testlab-1.3.1 lib/testlab/user.rb
testlab-1.3.0 lib/testlab/user.rb
testlab-1.2.3 lib/testlab/user.rb
testlab-1.2.2 lib/testlab/user.rb
testlab-1.2.1 lib/testlab/user.rb
testlab-1.2.0 lib/testlab/user.rb
testlab-1.1.0 lib/testlab/user.rb
testlab-1.0.1 lib/testlab/user.rb
testlab-1.0.0 lib/testlab/user.rb
testlab-0.9.1 lib/testlab/user.rb
testlab-0.9.0 lib/testlab/user.rb
testlab-0.8.6 lib/testlab/user.rb
testlab-0.8.5 lib/testlab/user.rb
testlab-0.8.4 lib/testlab/user.rb
testlab-0.8.3 lib/testlab/user.rb