Created
August 27, 2013 15:33
-
-
Save ncdc/6355170 to your computer and use it in GitHub Desktop.
Patch to add update_ssh_config to build/devenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ desc "update_ssh_config TAG", "Updates the verifier entry in the ssh config file with the dns info from tag" | |
+ method_option :verbose, :type => :boolean, :desc => "Enable verbose logging" | |
+ method_option :region, :required => false, :desc => "Amazon region override (default us-east-1)" | |
+ def update_ssh_config(tag) | |
+ options.verbose? ? log.level = Logger::DEBUG : log.level = Logger::ERROR | |
+ conn = connect(options.region) | |
+ instance = find_instance(conn, tag, true, false) | |
+ update_ssh_config_verifier(instance) | |
+ end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment