dyntool 0.1.11 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dyntool.rb +5 -1
- metadata +3 -3
data/lib/dyntool.rb
CHANGED
|
@@ -585,7 +585,8 @@ class OperateDyn
|
|
|
585
585
|
@record_data = BuildService(@@args[0],@@args[1],@@args[2],@@args[3])
|
|
586
586
|
@@session.GenerateGeoService(@@args[0],@record_data,"update")
|
|
587
587
|
end
|
|
588
|
-
when "RevertGeo" then
|
|
588
|
+
when "RevertGeo" then
|
|
589
|
+
if @@args[0] == "all"
|
|
589
590
|
@services = @@session.GetServices()
|
|
590
591
|
@services.each do |s|
|
|
591
592
|
@record_data = BuildService("#{s}","","","")
|
|
@@ -854,6 +855,8 @@ class Restcall
|
|
|
854
855
|
end
|
|
855
856
|
# return list of geo service defined for the account
|
|
856
857
|
def GetServices()
|
|
858
|
+
@excluded = []
|
|
859
|
+
@excluded << "geo10"
|
|
857
860
|
puts "Getting the list of geo services"
|
|
858
861
|
@url = URI.parse("https://api2.dynect.net/REST/Geo/")
|
|
859
862
|
@result = GetDyn()
|
|
@@ -862,6 +865,7 @@ class Restcall
|
|
|
862
865
|
@services.each do |service|
|
|
863
866
|
@gservices << service.gsub(/\/REST\/Geo\/|\//,"")
|
|
864
867
|
end
|
|
868
|
+
@gservices = @gservices - @excluded
|
|
865
869
|
return(@gservices)
|
|
866
870
|
end
|
|
867
871
|
def GetGeoData(service)
|