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

Set stage at the beginning to be able to use it from config/deploy.rb

This commit is contained in:
Kir Shatrov 2013-10-17 12:14:32 +02:00
parent a4db00e77e
commit a9e71c8040

View file

@ -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