lib/testlab/labfile.rb in testlab-1.3.1 vs lib/testlab/labfile.rb in testlab-1.3.2
- old
+ new
@@ -9,9 +9,18 @@
class Labfile < ZTK::DSL::Base
has_many :nodes, :class_name => 'TestLab::Node'
attribute :testlab
attribute :config, :default => Hash.new
+ attribute :version, :default => TestLab::VERSION
+
+ def initialize(*args)
+ @ui = TestLab.ui
+
+ @ui.logger.info { "Loading Labfile '#{self.id}'" }
+ super(*args)
+ @ui.logger.info { "Labfile '#{self.id}' Loaded" }
+ end
def config_dir
self.testlab.config_dir
end