[Nitro] [PATCH] beginning of a rake file

George Moschovitis george.moschovitis at gmail.com
Fri Jun 15 11:57:14 EDT 2007


This looks nice :)
I am glad you are taking the specs thing seriously!

-g.

On 6/15/07, arne at arnebrasseur.net <arne at arnebrasseur.net> wrote:
>
> I'm looking at the best way to organise the test/spec infrastructure, but
> something with a rakefile seems the way to go. To that end I created a
> rakefile and a rake_tasks directory, and moved the most obvious stuff from
> script/ to rake_tasks/
>
> So issuing rake -T now gives you
> rake cleanup:all    # Perform all cleanup tasks
> rake cleanup:cache  # Cleanup caches
> rake cleanup:dist   # Cleanup distribution dirs
> rake cleanup:misc   # cleanup miscelanious files
> rake cleanup:rdoc   # Cleanup rDoc directories
> rake darcs:apply    # Apply a patch bundle to the darcs repository
> rake dist           # Create gem and zip distributions
> rake tabs           # Convert tabs to spaces and \r\n to \n
>
> script/cleanup.rb
> script/build.rb
> script/ctabs.rb
> script/apply.rb
>
> have been replaced with
>
> rake_tasks/cleanup.rake
> rake_tasks/dist.rake
> rake_tasks/tabs.rake
> rake_tasks/apply.rake
>
> The only thing is that with rake it's not so easy to pass additional
> command line arguments to your tasks, AFAIK. So for apply i resorted to
> using environment variables :
>
> BUNDLE=some_bundle rake darcs:apply
>
> As said a rake_tasks/spec.rake is coming, I'm looking at the rspec rake
> tasks, and at how Ramaze does it since they don't use the rSpec task.
>
> Sorry for the empty mail.
>
> (ab)
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>


-- 
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070615/466ed562/attachment-0001.html 


More information about the Nitro-general mailing list