1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/test
Jamis Buck 2ac1906a3a Make block-triggers scope to the task they are attached to.
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".
2008-06-05 21:00:19 -06:00
..
cli Improved test coverage for debug cli option 2008-05-10 19:07:44 -04:00
configuration Make block-triggers scope to the task they are attached to. 2008-06-05 21:00:19 -06:00
deploy report hostname with output of scm_run. 2008-05-31 10:03:29 -06:00
fixtures Make sure the CLI components integrate nicely. Make sure the Configuration components integrate nicely. 2007-03-04 21:34:35 +00:00
cli_test.rb fix tests to depend on a preset load path rather than an explicit require path in each 2008-04-25 09:21:12 -06:00
command_test.rb tests all pass 2008-04-27 21:47:23 -06:00
configuration_test.rb fix tests to depend on a preset load path rather than an explicit require path in each 2008-04-25 09:21:12 -06:00
extensions_test.rb fix tests to depend on a preset load path rather than an explicit require path in each 2008-04-25 09:21:12 -06:00
logger_test.rb fix tests to depend on a preset load path rather than an explicit require path in each 2008-04-25 09:21:12 -06:00
role_test.rb Improved test coverage for clearing a role 2008-05-11 23:21:33 -04:00
server_definition_test.rb Improved test coverage for Capistrano::ServerDefinition.default_user 2008-05-10 19:37:54 -04:00
shell_test.rb fix tests to depend on a preset load path rather than an explicit require path in each 2008-04-25 09:21:12 -06:00
ssh_test.rb tests all pass 2008-04-27 21:47:23 -06:00
task_definition_test.rb fix tests to depend on a preset load path rather than an explicit require path in each 2008-04-25 09:21:12 -06:00
transfer_test.rb tests all pass 2008-04-27 21:47:23 -06:00
utils.rb fix tests to depend on a preset load path rather than an explicit require path in each 2008-04-25 09:21:12 -06:00