diff --git a/spec/support/tasks/fail.rake b/spec/support/tasks/fail.rake index aec54a79..e6098a9a 100644 --- a/spec/support/tasks/fail.rake +++ b/spec/support/tasks/fail.rake @@ -1,6 +1,7 @@ set :fail, proc { fail } before 'deploy:starting', :fail do on roles :all do + execute :mkdir, '-p', shared_path execute :touch, shared_path.join('fail') end fetch(:fail) diff --git a/spec/support/tasks/failed.rake b/spec/support/tasks/failed.rake index d1f6b58c..494c78b3 100644 --- a/spec/support/tasks/failed.rake +++ b/spec/support/tasks/failed.rake @@ -1,4 +1,4 @@ -after 'deploy:failed', :failed do +after 'deploy:failed', :custom_failed do on roles :all do execute :touch, shared_path.join('failed') end