Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lookup host ip if none given #14

Merged
merged 1 commit into from
Jun 14, 2016
Merged

Conversation

nexdrew
Copy link
Contributor

@nexdrew nexdrew commented Jun 11, 2016

Fixes #13.

Adds public-ip@1.2.0 as a dependency in order to lookup the public IP of the current host if no IP is given. Cannot use public-ip greater than version 1 if we want to preserve Node 0.10 compatibility.

Changes API to make the ip arg optional, allowing just a callback to be given to perform the public IP lookup before determining cloud.

Changes CLI to allow no args. This could be considered a breaking change since output and exit code will be different. However, since it's adding functionality rather than taking it away, we can probably just consider this a feature.

@coveralls
Copy link

coveralls commented Jun 11, 2016

Coverage Status

Coverage increased (+0.2%) to 98.039% when pulling 3327d9d on nexdrew:lookup-public-ip into ea9375b on bcoe:master.

@bcoe bcoe merged commit dbdc263 into bcoe:master Jun 14, 2016
@nexdrew nexdrew deleted the lookup-public-ip branch July 11, 2016 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants