Sha256: aaacb63be4e6476a219f16962b690bce9920412d23f41c30ff0239719dee832e
Contents?: true
Size: 346 Bytes
Versions: 4
Compression:
Stored size: 346 Bytes
Contents
# frozen_string_literal: true 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
4 entries across 4 versions & 1 rubygems