From ec051c62eccb21fc6936a504356ad0772155f35e Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Fri, 3 Oct 2014 19:37:20 +0200 Subject: [PATCH] Use deploy_path helper --- CHANGELOG.md | 1 + lib/capistrano/tasks/safe_deploy_to.rake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f12c3ea..e673dfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Changelog ### master +- use `deploy_path` helper instead of `fetch :deploy_to` - fix a bug: plugin task blows up if setup task is not defined diff --git a/lib/capistrano/tasks/safe_deploy_to.rake b/lib/capistrano/tasks/safe_deploy_to.rake index ac56792..b11dc42 100644 --- a/lib/capistrano/tasks/safe_deploy_to.rake +++ b/lib/capistrano/tasks/safe_deploy_to.rake @@ -1,7 +1,7 @@ namespace :load do task :defaults do set :safe_deploy_to_owner, nil - set :safe_deploy_to_path, -> { fetch(:deploy_to) } + set :safe_deploy_to_path, -> { deploy_path } end end