lib/jefferies_tube/capistrano/ssh.rb in jefferies_tube-0.1.3 vs lib/jefferies_tube/capistrano/ssh.rb in jefferies_tube-0.1.4

- old
+ new

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