I just launched rake-hoos, to add and after and before hooks to each task.
Comments
Post was too long. Including trimmed:
For example in your Rakefile or task.rake:
require 'rake/hooks'
task :say_hello do
puts "Good Morning !"
end
after :say_hello do
puts "GoodBye"
end
after :say_hello do
puts "Now go to bed !"
end
before :say_hello do
puts "Hi !"
end
Now run with rake:<pre>$ rake say_hello
Hi !
Good Morning !
GoodBye
Now go to bed !"
</pre>
Comments
Post was too long. Including trimmed:
For example in your Rakefile or task.rake:
Now run with rake:<pre>
$ rake say_hello Hi ! Good Morning ! GoodBye Now go to bed !"
</pre>Post a comment