Global rake tasks

Hi!

Does rake support some kind of ‘global’ tasks that would be loaded
from ~/.rake or some similar directory?

I’d like to have some admin tasks or some subversion related tasks (like
svn:tag that tags the trunk as appropriate VERSION and automatically
fills the changelog) globally defined.

I know that with rails, you can place the tasks in lib/rake, but most of
the projects are not rails related.

Greetings,

Esad

Esad H.:

Does rake support some kind of ‘global’ tasks that would be loaded
from ~/.rake or some similar directory?

$ rake --help | grep -B 1 “import|equire”
–libdir=LIBDIR (-I)
Include LIBDIR in the search path for required modules.

–rakelibdir=RAKELIBDIR (-R)
Auto-import any .rake files in RAKELIBDIR. (default is ‘rakelib’)
–require=MODULE (-r)
Require MODULE before executing rakefile.

A shell alias will then save you typing.

Kalman

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs