Sha256: 63ce6f38f2f813593819cccee5d04c084fd2d91328020817df996e60c1d4553d
Contents?: true
Size: 257 Bytes
Versions: 3
Compression:
Stored size: 257 Bytes
Contents
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"| puts cmd exec cmd end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jefferies_tube-0.1.3 | lib/jefferies_tube/capistrano/ssh.rb |
jefferies_tube-0.1.2 | lib/jefferies_tube/capistrano/ssh.rb |
jefferies_tube-0.1.1 | lib/jefferies_tube/capistrano/ssh.rb |