Skip to content
This repository has been archived by the owner on Jul 14, 2018. It is now read-only.

Latest commit

 

History

History
14 lines (8 loc) · 486 Bytes

2.x-DSL-Action-File-Transfer-Get.md

File metadata and controls

14 lines (8 loc) · 486 Bytes

Definition

get(remote_path, path, options={}, &block) 

Module

Capistrano::Configuration::Actions::FileTransfer 

The get action is used to transfer files (or even an entire directory tree) from a single remote host to the local host. It is identical the download helper, invoked with the :once option:

get "/etc/hosts", "downloads/hosts"
download "/etc/hosts", "downloads/hosts", :once => true

Refer to download() for the full scoop of what's possible.