Sha256: e60b1d203f7ea68c3f435026edfc20817ab81b8f52b211e7c70034a02396e7a8
Contents?: true
Size: 793 Bytes
Versions: 8
Compression:
Stored size: 793 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.info { "Loading User '#{self.id}'" } super(*args) @ui.logger.info { "User '#{self.id}' Loaded" } end end end
Version data entries
8 entries across 8 versions & 1 rubygems