lib/testlab/provisioners/raring.rb in testlab-1.0.0 vs lib/testlab/provisioners/raring.rb in testlab-1.0.1

- old
+ new

@@ -25,11 +25,17 @@ # provision. # @return [Boolean] True if successful. def on_node_provision(node) @ui.logger.debug { "Ubuntu Raring Provisioner: Node #{node.id}" } - bootstrap_template = File.join(TestLab::Provisioner.template_dir, "raring", "bootstrap.erb") - node.ssh.bootstrap(ZTK::Template.render(bootstrap_template, @config)) + node.bootstrap(ZTK::Template.render(provision_template, @config)) + end + alias :on_node_up :on_node_provision + + private + + def provision_template + File.join(TestLab::Provisioner.template_dir, 'raring', 'provision.erb') end end end