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

allow user to specify connection method to use #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpatters
Copy link
Contributor

Allows the user to specify the method to call to get the ip/domain name to connect to.
Might want to limit it to just the methods that are useful. But this works for my purposes. Just thought I would share. It will default to the current behaviour.

Methods that are useful are

public_dns_name
private_dns_name
public_ip_address
private_ip_address

Usage:

autoscale 'asg-name', connect_via: :public_dns_name, roles: [:app, :web]

@sixfeetover
Copy link
Member

Nice - looks useful. I would like to see the methods whitelisted and use of public_send instead of send before merge.

@jpatters
Copy link
Contributor Author

Makes sense. I'll try to get to this soon.

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

Successfully merging this pull request may close these issues.

2 participants