dynect_rest icon indicating copy to clipboard operation
dynect_rest copied to clipboard

May or may not want to wrap into gem

Open tomdyninc opened this issue 13 years ago • 0 comments

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!

tomdyninc avatar Sep 21 '11 14:09 tomdyninc