lib/testlab/provisioners/chef/omni_bus.rb in testlab-1.0.1 vs lib/testlab/provisioners/chef/omni_bus.rb in testlab-1.1.0

- old
+ new

@@ -57,12 +57,12 @@ # OmniBus: Container Deprovision # # @return [Boolean] True if successful. def on_container_deprovision(container) if @chef_server.state == :running - @chef_server.ssh.exec(%(knife node delete #{container.id} --yes), :ignore_exit_status => true) - @chef_server.ssh.exec(%(knife client delete #{container.id} --yes), :ignore_exit_status => true) + @chef_server.exec(%(knife node delete #{container.id} --yes), :ignore_exit_status => true) + @chef_server.exec(%(knife client delete #{container.id} --yes), :ignore_exit_status => true) end true end @@ -92,10 +92,10 @@ node_name #{@config[:chef][:client][:node_name].inspect} EOF end def validation_pem - @chef_server.ssh.exec(%((cat ~/.chef/validation.pem || cat ~/.chef/chef-validator.pem) 2> /dev/null)).output.strip + @chef_server.exec(%((cat ~/.chef/validation.pem || cat ~/.chef/chef-validator.pem) 2> /dev/null)).output.strip end end end