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

May or may not want to wrap into gem #7

Open
tomdyninc opened this issue Sep 21, 2011 · 0 comments
Open

May or may not want to wrap into gem #7

tomdyninc opened this issue Sep 21, 2011 · 0 comments

Comments

@tomdyninc
Copy link

Just kind of a "gotcha" point, when dealing with GSLB which requires regions with spaces. Basically the uri needs to be normalized before being used, may want to wrap the normalization into the game itself instead of needing to be called before passing it (or just doing a quick mention of it in the docs), this is currently how I call it:

!/usr/bin/env ruby

require 'rubygems'
require 'dynect_rest'
require 'addressable/uri'
dyn = DynectRest.new("CUSTOMER_NAME", "USER_NAME", "PASSWORD", "ZONEt")
dyn.post(Addressable::URI.parse("GSLBRegionPoolEntry/ZONE/FQDN/US West/").normalize.to_str, {"address" => "2.2.32.2"})
dyn.publish

If you moved the "Addressable::URI.parse" into the gem it would simplify it for the user... I guess this is actually more a feature request since the game still works great!

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

No branches or pull requests

1 participant