5 ms·
That's one huge advantage with Rake, just add `p VARIABLE_NAME` anywhere in your Rakefile, and you'll see the textual value of it at that point.
by herge 12y ago
That's one huge advantage with Rake, just add `p VARIABLE_NAME` anywhere in your Rakefile, and you'll see the textual value of it at that point.
- davexunit 12y agoYou can add echo commands to Makefiles just as easily. Rake is cool for Ruby programs, but that's about it.
- vidarh 12y agoPersonally I find Rake awful for Ruby work too because you often need to read through a Ruby program to figure out what they do, and so many tools include custom Rake integration that makes you hunt down documentation elsewhere. I usually use Makefiles for my Ruby projects.
- ska 12y agoThat misses the point; you can already echo a variable wherever you want in a makefile similarly. This gives you a way to do it without editing the makefile, without knowing before hand you want to see that variable.