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

Deprecate remote_file feature (#1709)

Closes #1679
This commit is contained in:
Yury Lebedev 2016-06-20 17:23:27 +02:00 committed by Matt Brictson
parent 3323eb80fa
commit 15085fd952
2 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,7 @@ https://github.com/capistrano/capistrano/compare/v3.5.0...HEAD
* Make name of current directory configurable via configuration variable `:current_directory` (@websi)
* `doctor` no longer erroneously warns that `:git_strategy` and other SCM options are "unrecognized" (@shanesaww)
* Add `net-ssh` gem version to `doctor:gems` output (@lebedev-yury)
* Deprecate `remote_file` feature (will be removed in Capistrano 3.7.0) (@lebedev-yury)
## `3.5.0`

View file

@ -18,6 +18,9 @@ module Capistrano
end
def remote_file(task)
warn("[Deprecation Warning] `remote_file` is deprecated and will be "\
"removed in Capistrano 3.7.0")
target_roles = task.delete(:roles) { :all }
define_remote_file_task(task, target_roles)
end