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

Add configuration option for using the public IP. #145

Merged
merged 1 commit into from
Jan 31, 2015

Conversation

Ferada
Copy link
Contributor

@Ferada Ferada commented Jan 9, 2015

This can still be overridden with the -e flag to ssh. The default isn't changed, so users have to explicitly add the option use_public_ip to their configuration file.

I wasn't sure about whether it should also be added to the initial configuration file, so I have left that part out.

There is also one additional test case to verify the new configuration option.

This can still be overridden with the `-e` flag to `ssh`.  The default
isn't changed, so users have to explicitely add the option
`use_public_ip` to their configuration file.
@petems petems added the v1.0.0 label Jan 29, 2015
if env["droplet_ip_private"]
use_public_ip = env["config"].use_public_ip

if not env["user_droplet_use_public_ip"].nil?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably better as

unless env["user_droplet_use_public_ip"].nil? 

@petems
Copy link
Owner

petems commented Jan 31, 2015

I've got two comments, but I'm going to fix them myself as a separate request so I can get all the PR's merged so we can get working v2 👍

petems added a commit that referenced this pull request Jan 31, 2015
Add configuration option for using the public IP.
@petems petems merged commit f4c6647 into petems:master Jan 31, 2015
@Ferada
Copy link
Contributor Author

Ferada commented Jan 31, 2015

Thanks @petems!

@petems
Copy link
Owner

petems commented Jan 31, 2015

No problem, thank you for your contribution @Ferada! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants