[Rake-devel] Rake and --directory option

Jim Weirich jim.weirich at gmail.com
Wed Jan 30 09:30:57 EST 2008

On Jan 30, 2008, at 8:54 AM, Andrea Fazzi wrote:

> Paweł Kondzior ha scritto:
>> Hello, about 2 years ago someone posted patch for rake to be abbe to
>> change current working directory before doing any tasks, this future
>> is great when you want to use rake and crontab, its easier to change
>> directory from rake than from sh, is there any chance to see this
>> patch in rake trunk and next release of rake ?
>> Here is a post about patch
>> http://rubyforge.org/pipermail/rake-devel/2006-March/000194.html
> On December 2006 I submitted the following patch to ruby-talk:
> http://groups.google.it/group/ruby-talk-google/browse_thread/thread/ 
> 11f28c87a28f276d/225ebe1cc745ec34?hl=it&lnk=st&q=andrea+fazzi+rake 
> +patch#225ebe1cc745ec34

Since rake automatically changes directories to the directory  
containing the rakefile, why not just specify the rakefile directly  
(with the -f) option?

-- Jim Weirich
-- jim.weirich at gmail.com

More information about the Rake-devel mailing list