Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Check if redir is installed #112

Merged
merged 5 commits into from
Jul 22, 2013
Merged

Check if redir is installed #112

merged 5 commits into from
Jul 22, 2013

Conversation

zeroem
Copy link
Contributor

@zeroem zeroem commented Jul 15, 2013

If there are ports to be forwarded, and redir is not installed, abort the boot and announce the error in the console.

Make a system call out to `which` to see if redir exists on the PATH
before trying to forward ports.  Raises a VagrantError if it does not.
@zeroem
Copy link
Contributor Author

zeroem commented Jul 15, 2013

resolves #11

@zeroem
Copy link
Contributor Author

zeroem commented Jul 15, 2013

interestingly, I need to explicitly require tmpdir for Dir.mktmpdir to work.

Includes a minor refactor allowing variation of the result of the system
call per test
@fgrehm fgrehm merged commit eb0854b into fgrehm:master Jul 22, 2013
@fgrehm
Copy link
Owner

fgrehm commented Jul 22, 2013

@zeroem sorry for not merging this one before, I've just done that and will release a new version this week with this and #76. tks for you help :)

@zeroem zeroem deleted the check-for-redir branch July 22, 2013 18:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants