Skip to content

Instantly share code, notes, and snippets.

@failshell
Created April 29, 2015 13:04
Show Gist options
  • Save failshell/a6b8bec41d43d30cb58d to your computer and use it in GitHub Desktop.
Save failshell/a6b8bec41d43d30cb58d to your computer and use it in GitHub Desktop.
c.do_i_exist?(ARGV[1]) ? fail 'Configuration already exists.' : c.create(ARGV[1])
/Users/foo/bin/farm:3:in `require_relative': /Users/foo/src/farm/lib/farm/cli.rb:39: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' (SyntaxError)
...c.do_i_exist?(ARGV[1]) ? fail "Configuration already exists....
... ^
/Users/foo/src/farm/lib/farm/cli.rb:39: syntax error, unexpected ':', expecting keyword_end
...onfiguration already exists." : c.create(ARGV[1])
... ^
from /Users/foo/bin/farm:3:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment