mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
![]() Prior to this, if you defined (e.g.) a before task using a block, like this: before :foo do puts "current task is #{current_task.name}" end And then, you invoked :foo like this: task :bar do run "something" foo end You'd see the before-foo block print "bar" as the name of the current task. This meant that any commands run in the foo before block would be scoped to the servers of :bar, when it really makes more sense to scope them to the servers of :foo. This commit makes it so that the before-foo block, above, would show "foo" as the name of the current task, rather than "bar". |
||
---|---|---|
.. | ||
cli | ||
configuration | ||
deploy | ||
fixtures | ||
cli_test.rb | ||
command_test.rb | ||
configuration_test.rb | ||
extensions_test.rb | ||
logger_test.rb | ||
role_test.rb | ||
server_definition_test.rb | ||
shell_test.rb | ||
ssh_test.rb | ||
task_definition_test.rb | ||
transfer_test.rb | ||
utils.rb |