Sha256: 14d8212690d01e0f9ef566ff0b6b681b157746494a8b22f1511155b1728e87fa
Contents?: true
Size: 340 Bytes
Versions: 9
Compression:
Stored size: 340 Bytes
Contents
desc "ssh to the current directory on the server" task ssh: 'controlmaster:setup' 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
9 entries across 9 versions & 1 rubygems