lib/testlab.rb in testlab-0.7.2 vs lib/testlab.rb in testlab-0.7.3
- old
+ new
@@ -104,19 +104,20 @@
include TestLab::Utility::Misc
attr_accessor :config_dir
attr_accessor :repo_dir
+ attr_accessor :labfile_path
def initialize(options={})
self.ui = (options[:ui] || ZTK::UI.new)
self.class.ui = self.ui
@config_dir = (options[:config_dir] || File.join(Dir.pwd, ".testlab-#{HOSTNAME}"))
@repo_dir = (options[:repo_dir] || Dir.pwd)
labfile = (options[:labfile] || File.join(Dir.pwd, 'Labfile'))
- labfile_path = ZTK::Locator.find(labfile)
+ @labfile_path = ZTK::Locator.find(labfile)
@labfile = TestLab::Labfile.load(labfile_path)
@labfile.testlab = self
end
# Test Lab Nodes