lib/testlab.rb in testlab-0.7.0 vs lib/testlab.rb in testlab-0.7.1

- old
+ new

@@ -23,11 +23,11 @@ # apt-get -y install dnsutils # EOF # # config Hash[ # :domain => "default.zone", -# :repo => File.join(Dir.home, "code", "personal", "testlab-repo") +# :repo => File.join(ENV['HOME'], "code", "personal", "testlab-repo") # ] # # node :localhost do # components %w(resolv bind) # route true @@ -82,10 +82,12 @@ # testlab.teardown # teardown the lab, destroy all networks and containers # # @author Zachary Patten <zachary AT jovelabs DOT com> class TestLab - HOSTNAME ||= Socket.gethostname.split('.').first.strip + unless const_defined?(:HOSTNAME) + HOSTNAME = Socket.gethostname.split('.').first.strip + end # TestLab Error Class class TestLabError < StandardError; end # Main Classes