Project

rake-hooks

0.06
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Add after and before hooks to rake tasks. You can use "after :task do ... end" and "before :task do ... end".
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

rake-hooks

Rake hooks let you add callbacks to rake:

Build Status endorse

Usage

For example in your Rakefile

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

$ rake say_hello
Hi !
Good Morning !
GoodBye
Now go to bed !

You can also pass more than one task and each task will be setup with the callback

before :say_hello, :say_goodbye do
  puts "Hi !"
end

Installation

With rubygems use:

$ gem install rake-hooks

With other systems Add lib dir to load path.

Dependencies

  • Rake

Author

Web

http://github.com/guillermo/rake-hooks

Date of writing

9 Sep 2011