Skip to content

Instantly share code, notes, and snippets.

@ncdc
Created August 27, 2013 15:33
Show Gist options
  • Save ncdc/6355170 to your computer and use it in GitHub Desktop.
Save ncdc/6355170 to your computer and use it in GitHub Desktop.
Patch to add update_ssh_config to build/devenv
+ 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