# Global rake tasks

**URL:** <https://www.ruby-forum.com/t/global-rake-tasks/71456>\
**Category:** Ruby\
**Created:** [October 9, 2006, 2:06am UTC](https://www.ruby-forum.com/t/global-rake-tasks/71456 "2006-10-09T02:06:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esad\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Post date:** [October 9, 2006, 2:06am UTC](https://www.ruby-forum.com/t/global-rake-tasks/71456/1 "2006-10-09T02:06:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Esad\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Post date:** [October 9, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/global-rake-tasks/71456/2 "2006-10-09T22:22:45Z")

</div>

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
