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:
commit
b9bb2cf923
1 changed files with 2 additions and 1 deletions
|
@ -8,11 +8,12 @@ end
|
||||||
|
|
||||||
stages.each do |stage|
|
stages.each do |stage|
|
||||||
Rake::Task.define_task(stage) do
|
Rake::Task.define_task(stage) do
|
||||||
|
set(:stage, stage.to_sym)
|
||||||
|
|
||||||
invoke 'load:defaults'
|
invoke 'load:defaults'
|
||||||
load 'config/deploy.rb'
|
load 'config/deploy.rb'
|
||||||
load "config/deploy/#{stage}.rb"
|
load "config/deploy/#{stage}.rb"
|
||||||
load "capistrano/#{fetch(:scm)}.rb"
|
load "capistrano/#{fetch(:scm)}.rb"
|
||||||
set(:stage, stage.to_sym)
|
|
||||||
I18n.locale = fetch(:locale, :en)
|
I18n.locale = fetch(:locale, :en)
|
||||||
configure_backend
|
configure_backend
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue