lib/jefferies_tube/capistrano/ssh.rb in jefferies_tube-0.1.0 vs lib/jefferies_tube/capistrano/ssh.rb in jefferies_tube-0.1.1

- old
+ new

@@ -1,8 +1,9 @@ desc "Open an ssh session" task :ssh do on roles(:app), primary: true do |host| port = host.port || 22 - puts "ssh #{host.user}@#{host} -p #{port}" - exec "ssh #{host.user}@#{host} -p #{port}" + cmd = %Q|ssh #{host.user}@#{host} -p #{port} -t "cd /u/apps/#{fetch :application}/current && exec bash -l"| + puts cmd + exec cmd end end