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 Hajdarevic:

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