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

Fix default configuration load order

Ensure application specific configuration is loaded after
`load:defaults`.  This closes #640 and
https://github.com/capistrano/bundler/issues/5
This commit is contained in:
seenmyfate 2013-09-08 10:51:51 +01:00
parent f85eb30979
commit f040f12353

View file

@ -3,13 +3,13 @@ include Capistrano::DSL
namespace :load do
task :defaults do
load 'capistrano/defaults.rb'
load 'config/deploy.rb'
end
end
stages.each do |stage|
Rake::Task.define_task(stage) do
invoke 'load:defaults'
load 'config/deploy.rb'
load "config/deploy/#{stage}.rb"
load "capistrano/#{fetch(:scm)}.rb"
set(:stage, stage.to_sym)