Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6978 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Capistrano get method allows downloading file from first remote server

Reported by: bmihelac Assigned to: minam
Priority: normal Milestone:
Component: Capistrano Version:
Severity: normal Keywords:
Cc:

Description

This patch adds get method to Capistrano for getting file *remote_path* from FIRST server targetted by the current task and transfer it to local machine as *path*.

Example use:

get "#{deploy_to}/current/log/production.log", "log/production.log.web" //download server log

Attachments

get_method_capistrano.diff (1.0 kB) - added by bmihelac on 01/10/07 13:16:32.

Change History

01/10/07 13:16:32 changed by bmihelac

  • attachment get_method_capistrano.diff added.

01/10/07 13:18:19 changed by bmihelac

  • type changed from defect to enhancement.

01/22/07 15:37:36 changed by minam

  • status changed from new to closed.
  • resolution set to fixed.

(In [6009]) Add a "get" helper, to pull a file from a remote server to the localhost (closes #6978). Also, fix a typo in standard.rb that caused a syntax error.

01/22/07 15:38:46 changed by minam

Thanks for the patch! I was needing something like this just yesterday. :) I made a few tweaks, such as adding a fallback method in case Net::SFTP is not available.