gma / nesta

File Based CMS and Static Site Generator
http://nestacms.com
MIT License
902 stars 121 forks source link

The demo:content command fails silently when git isn't installed #128

Closed gma closed 9 years ago

gma commented 11 years ago

We ask Ruby's system method to shell out to git for us, and it kindly returns nil without raising (or printing) an error if the command doesn't exist.

We need to check the return value wherever we call system.

jkowens commented 9 years ago

What do you think of adding a run method in the Command module that wraps the system call?