librelist archives

« back to archive

demo:content and git

demo:content and git

From:
Isaac Rabinovitch
Date:
2013-02-05 @ 21:08
I had been neglecting my Nesta studies, and decided to start from 
scratch. Create a new VM, installed RVM/Ruby, then ran through the 
"Getting Started" on the front page.

nesta demo:content silently did nothing. Finally I figured out that it 
needed git. Should really throw an error if it can't find git.

Re: [nesta] demo:content and git

From:
Graham Ashton
Date:
2013-02-08 @ 12:46
On 5 Feb 2013, at 21:08, Isaac Rabinovitch <isaac@picknit.com> wrote:

> nesta demo:content silently did nothing. Finally I figured out that it 
> needed git. Should really throw an error if it can't find git.

Wow, that's amazing. Ruby's system() function just ignores you if you ask 
it to run a program that doesn't exist. Nothing to stderr, and it just 
returns nil.

$ irb
irb(main):001:0> system('no-such', '--command')
=> nil

Frigging Ruby. Cheers for the report, I'll file a bug.

--
Graham Ashton
Founder, The Agile Planner
http://www.theagileplanner.com | @agileplanner | @grahamashton