Permalink
Browse files

Fixed bug with deep-level configuration

  • Loading branch information...
1 parent 6445cf8 commit d3406a80f28e7f0c79d3fc66f54518806df3fad4 @ayanko ayanko committed Dec 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/multiconfig/configurations.rb
@@ -39,12 +39,12 @@
desc "Load #{config_name} configuration"
task(task_name) do
# set configuration name as :config_name variable
- self.set(:config_name, config_name)
+ top.set(:config_name, config_name)
# recursively load configurations
segments.size.times do |i|
path = ([config_root] + segments[0..i]).join('/') + '.rb'
- self.load(path) if File.exists?(path)
+ top.load(:file => path) if File.exists?(path)
end
end
end

0 comments on commit d3406a8

Please sign in to comment.