Sha256: a09782d221773d16c3758e742f5b0b0de7735f0a7ed5730f0f11a04853e74bc6
Contents?: true
Size: 318 Bytes
Versions: 19
Compression:
Stored size: 318 Bytes
Contents
desc "ssh to the current directory on the server" task :ssh do on roles(:app), :primary => true do |host| command = "cd #{fetch(:deploy_to)}/current && exec $SHELL -l" puts command if fetch(:log_level) == :debug exec "ssh -l #{host.user} #{host.hostname} -p #{host.port || 22} -t '#{command}'" end end
Version data entries
19 entries across 19 versions & 1 rubygems