From a9e71c804044791676ef856cd05d2b5d4a751c05 Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Thu, 17 Oct 2013 12:14:32 +0200 Subject: [PATCH] Set stage at the beginning to be able to use it from config/deploy.rb --- lib/capistrano/setup.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/capistrano/setup.rb b/lib/capistrano/setup.rb index f08b470d..cf1f2c91 100644 --- a/lib/capistrano/setup.rb +++ b/lib/capistrano/setup.rb @@ -8,11 +8,12 @@ end stages.each do |stage| Rake::Task.define_task(stage) do + set(:stage, stage.to_sym) + invoke 'load:defaults' load 'config/deploy.rb' load "config/deploy/#{stage}.rb" load "capistrano/#{fetch(:scm)}.rb" - set(:stage, stage.to_sym) I18n.locale = fetch(:locale, :en) configure_backend end