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

Merge pull request #712 from kirs/patch-6

Set stage before requiring config/deploy.rb
This commit is contained in:
Tom Clements 2013-10-17 04:30:31 -07:00
commit b9bb2cf923

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