global rake tasks

  • Thread starter Esad Hajdarevic
  • Start date
E

Esad Hajdarevic

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
 
K

Kalman Noel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top