Skip to content

Rake hooks let you add callbacks to rake tasks.

License

Notifications You must be signed in to change notification settings

svestu/rake-hooks

This branch is up to date with guillermo/rake-hooks:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e45a26e · Apr 15, 2012

History

32 Commits
Mar 4, 2012
Mar 4, 2012
Sep 4, 2011
Feb 13, 2012
Oct 25, 2011
Feb 13, 2012
Feb 13, 2012
Jun 22, 2010
Feb 13, 2012
Sep 4, 2011
Dec 1, 2011

Repository files navigation

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

About

Rake hooks let you add callbacks to rake tasks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 98.0%
  • Roff 2.0%