lib/testlab/providers/vagrant.rb in testlab-0.4.1 vs lib/testlab/providers/vagrant.rb in testlab-0.4.2
- old
+ new
@@ -36,12 +36,10 @@
@config = (config || Hash.new)
@ui = (ui || TestLab.ui)
# ensure our vagrant key is there
@config[:vagrant] ||= Hash.new
-
- render_vagrantfile
end
################################################################################
# Create the Vagrant instance
@@ -172,9 +170,10 @@
@ui.logger.debug { "args == #{args.inspect}" }
command = TestLab.build_command_line("vagrant", *args)
@ui.logger.debug { "command == #{command.inspect}" }
+ render_vagrantfile
ZTK::Command.new(:ui => @ui, :silence => true).exec(command)
end
def render_vagrantfile
context = {