Skip to content

Commit

Permalink
fix for listing tasks from recipes required from a non-default stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hale committed Sep 11, 2008
1 parent 0722f3d commit c017f55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/capistrano/ext/multistage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
end

on :load do
unless stages.include?(ARGV.first) # don't need to do anything if stage was specified
if stages.include?(ARGV.first)
# Execute the specified stage so that recipes required in stage can contribute to task list
find_and_execute_task(ARGV.first) if ARGV.any?{ |option| option =~ /-T|--tasks|-e|--explain/ }
else
# Execute the default stage so that recipes required in stage can contribute tasks
find_and_execute_task(default_stage) if exists?(:default_stage)
end
end
Expand Down

0 comments on commit c017f55

Please sign in to comment.