On 2008-12-17, Aldric G. <“aldric[remove]”@trevoke.net> wrote:
Jeremy H. wrote:
I use ‘sh “gem install …”’ and I’m worried about how portable it
Surrounding a command with backticks sends it out to the OS.
Sorry, I didn’t make it clear that this “sh” is a Rake method that
does (I imagine) pretty much the same thing as backticks. The
Rakefiles of other gems often use more complicated constructions
involving Gem::RUBY etc. and I wonder if this is to make things more
portable. Sadly I can’t Google up anything that says “the right way
to do it is … and here’s why”. It seems that most people bake
their own solution without giving their reasons. Unless I’m missing
something, of course.