1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Move gh-pages site to the docs/ folder

This commit is contained in:
Matt Brictson 2016-08-23 18:04:57 -07:00
parent 2850048c21
commit 9d62e3d7b6
No known key found for this signature in database
GPG key ID: 2F279EAD1F2ACFAF
101 changed files with 0 additions and 11811 deletions

View file

@ -0,0 +1,25 @@
---
title: Remote file task
layout: default
---
**Warning: `remote_file` is deprecated and will be removed in Capistrano 3.7.0**
The `remote_file` task is allowing the existence of a remote file to be set as a prerequisite. These tasks can in turn depend on local files if required. In this implementation, the fact that we're dealing with a file in the shared path is assumed.
As an example, this task can be used to ensure that files to be linked exist
before running the check:linked_files task:
```ruby
namespace :deploy do
namespace :check do
task :linked_files => 'config/newrelic.yml'
end
end
remote_file 'config/newrelic.yml' => '/tmp/newrelic.yml', roles: :app
file '/tmp/newrelic.yml' do |t|
sh "curl -o #{t.name} https://rpm.newrelic.com/accounts/xx/newrelic.yml"
end
```