lib/simple_provision/cli.rb in simple_provision-0.99.9 vs lib/simple_provision/cli.rb in simple_provision-0.99.10
- old
+ new
@@ -13,10 +13,10 @@
SimpleProvision::SCP.new(username, host, options).copy_files
end
def configure
begin
- Net::SSH.start(host, username) do |ssh|
+ Net::SSH.start(host, username, :forward_agent => true) do |ssh|
ssh.exec! "tar -xzf #{SimpleProvision::SCP::FILENAME}"
scripts = options.fetch(:scripts).each do |script|
puts "Execute #{script}"
ssh.open_channel do |ssh_channel|
ssh_channel.request_pty