wycats/thor — pull request #224 by helios (2012-03-21 17:13:15+00:00)
Title: A task can be recalled many times from the same task-caller

class Caller < Thor
desc "fake DATA", "fake caller"
def fake(data)
puts "#{data}"
end

desc "foo INFO", "foo main caller"
def foo(info)
invoke :fake, ["Pippo #{info}"]
invoke :fake, ["Pluto #{info}"]
end
end

Without patch:

thor caller:foo Duck
=> Pippo Duck

with patch
=> Pippo Duck
=> Pluto Duck