lib/capistrano/multiconfig.rb in capistrano-multiconfig-3.0.3 vs lib/capistrano/multiconfig.rb in capistrano-multiconfig-3.0.4
- old
+ new
@@ -1,17 +1,23 @@
require 'capistrano/multiconfig/dsl'
include Capistrano::DSL
include Capistrano::Multiconfig::DSL
+namespace :load do
+ task :defaults do
+ load 'capistrano/defaults.rb'
+ end
+end
+
stages.each do |stage|
Rake::Task.define_task(stage) do
# Set stage variable
set(:stage, stage)
# Load defaults variables
- load "capistrano/defaults.rb"
+ invoke 'load:defaults'
# Load stage configuration(s).
#
# For stage 'production' will be loaded next configurations:
#