I have a rake task named setup, that depends on a file task that
creates a yml file that has the path to ruby on the system. I would
like setup to abort if the file is created and tell the user to edit
the yml file to the actual ruby path.
So far, the only way I can think of to do it is using the exit method.
However I get the following message:
$ rake setup
property ‘svn:ignore’ set on ‘.’
Please edit the ruby_env.yml file with the path to ruby on your system.
Then run ‘rake setup’ again.
However, the last three lines look like an error and would probably be
confusing to the user.
Is there a more elegant way to do this in rake?