Sha256: f18713068d046de882e3792f95b7215d2689c3142a6d8ac6a3841cfc3eb7093e

Contents?: true

Size: 262 Bytes

Versions: 18

Compression:

Stored size: 262 Bytes

Contents

namespace :ec2 do
  task :ssh do
    index = ENV['server'].to_i
    server = release_roles(:all)[index]
    if server
      exec "ssh #{server.user}@#{server.hostname}"
    else
      fail "Could not find a server to SSH to at index #{index}."
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
elocal_capistrano-2.3.7 lib/tasks/ssh.rake
elocal_capistrano-2.3.6 lib/tasks/ssh.rake
elocal_capistrano-2.3.5 lib/tasks/ssh.rake
elocal_capistrano-2.3.4 lib/tasks/ssh.rake
elocal_capistrano-2.3.3 lib/tasks/ssh.rake
elocal_capistrano-2.3.2 lib/tasks/ssh.rake
elocal_capistrano-2.3.1 lib/tasks/ssh.rake
elocal_capistrano-2.3.0 lib/tasks/ssh.rake
elocal_capistrano-2.2.1 lib/tasks/ssh.rake
elocal_capistrano-2.2.0 lib/tasks/ssh.rake
elocal_capistrano-2.1.3 lib/tasks/ssh.rake
elocal_capistrano-2.1.2 lib/tasks/ssh.rake
elocal_capistrano-2.1.1 lib/tasks/ssh.rake
elocal_capistrano-2.1.0 lib/tasks/ssh.rake
elocal_capistrano-2.0.4 lib/tasks/ssh.rake
elocal_capistrano-2.0.3 lib/tasks/ssh.rake
elocal_capistrano-2.0.2 lib/tasks/ssh.rake
elocal_capistrano-2.0.1 lib/tasks/ssh.rake