[Nitro] [PATCH] beginning of a rake file
arne at arnebrasseur.net
arne at arnebrasseur.net
Fri Jun 15 08:56:40 EDT 2007
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rake_init.patch.tar.gz
Type: application/gzip
Size: 13640 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20070615/14cc791d/attachment.bin
More information about the Nitro-general
mailing list