lib/cucumber/chef/provisioner.rb in cucumber-chef-3.0.0.rc.0 vs lib/cucumber/chef/provisioner.rb in cucumber-chef-3.0.0.rc.1
- old
+ new
@@ -137,20 +137,20 @@
################################################################################
def upload_cookbook
@ui.logger.debug { "Uploading cucumber-chef cookbooks..." }
ZTK::Benchmark.bench(:message => "Uploading 'cucumber-chef' cookbooks", :mark => "completed in %0.4f seconds.", :ui => @ui) do
- @test_lab.knife_cli(%Q{cookbook upload cucumber-chef -o #{@cookbooks_path}}, :silence => true)
+ @test_lab.knife_cli(%(cookbook upload cucumber-chef -o #{@cookbooks_path}), :silence => true)
end
end
################################################################################
def upload_role
@ui.logger.debug { "Uploading cucumber-chef test lab role..." }
ZTK::Benchmark.bench(:message => "Uploading 'cucumber-chef' roles", :mark => "completed in %0.4f seconds.", :ui => @ui) do
- @test_lab.knife_cli(%Q{role from file #{File.join(@roles_path, "test_lab.rb")}}, :silence => true)
+ @test_lab.knife_cli(%(role from file #{File.join(@roles_path, "test_lab.rb")}), :silence => true)
end
end
################################################################################
@@ -180,9 +180,10 @@
def reboot_test_lab
ZTK::Benchmark.bench(:message => "Rebooting the test lab", :mark => "completed in %0.4f seconds.", :ui => @ui) do
command = "sudo reboot"
@test_lab.bootstrap_ssh.exec(command, :silence => true)
+ sleep(10)
ZTK::TCPSocketCheck.new(:host => @test_lab.ip, :port => @test_lab.port, :wait => 120).wait
end
wait_for_chef_server
end