foundation / foundation-cli

The command line installer for Foundation Sites, Emails, Apps.
178 stars 47 forks source link

Post-install hook to check for Ruby CLI #25

Open gakimball opened 8 years ago

gakimball commented 8 years ago

When the CLI finishes installing, it should check if the user's machine has a foundation command and give a warning. The warning will fire if you have the Ruby CLI installed.

Post-install scripts sometimes fail on Windows machine, so we'll need to test there.

mhair commented 8 years ago

I've found that I also get the above "was called with no arguments", but when I gem uninstall foundation then I get sh.exe" /c/Ruby193/bin/foundation: No such file or directory.

So I can't win either way....can't use the new CLI on this machine. Strangely, it worked fine on my work computer.

Any suggestions?

gakimball commented 8 years ago

Unfortunately I'm not an expert in environment stuff. I will say there's nothing out of the ordinary about how our Ruby or Node CLIs are built—they work like any other command line tool, so anything you can find online about issues with installing Gems or global node modules will apply to our stuff too.