# How can I setup a Rails-like task directory

**URL:** <https://www.ruby-forum.com/t/how-can-i-setup-a-rails-like-task-directory/148991>\
**Category:** Ruby\
**Created:** [September 19, 2008, 3:10am UTC](https://www.ruby-forum.com/t/how-can-i-setup-a-rails-like-task-directory/148991 "2008-09-19T03:10:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreux](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@andreux](https://www.ruby-forum.com/u/andreux)\
**Post date:** [September 19, 2008, 3:10am UTC](https://www.ruby-forum.com/t/how-can-i-setup-a-rails-like-task-directory/148991/1 "2008-09-19T03:10:39Z")

</div>

I looking for a way to create a centralized library of rake files and  
have all tasks be available when running rake, similar to how lib/  
tasks works in rails.

Everything I’ve tried so far has been unsucessful, and I get errors  
even when trying to require a single .rake file from my Rakefile.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![andreux](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@andreux](https://www.ruby-forum.com/u/andreux)\
**Post date:** [September 19, 2008, 3:39am UTC](https://www.ruby-forum.com/t/how-can-i-setup-a-rails-like-task-directory/148991/2 "2008-09-19T03:39:22Z")

</div>

Hi,

On Sep 18, 2008, at 8:02 PM, andreux wrote:

> I looking for a way to create a centralized library of rake files and  
> have all tasks be available when running rake, similar to how lib/  
> tasks works in rails.
> 
> Everything I’ve tried so far has been unsucessful, and I get errors  
> even when trying to require a single .rake file from my Rakefile.
> 
> Any suggestions?

You might be interested in Sake:

> **[Sake Bomb! — err.the\_blog](http://errtheblog.com/posts/60-sake-bomb)**
>
> Err the Blog: Ruby and Rails from the front.

Best,  
Stephen
