[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

global rake tasks

Esad Hajdarevic

10/9/2006

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
1 Answer

Kalman Noel

10/9/2006 8:15:00 PM

0

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