dyntool 0.0.3 → 0.0.5

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.
Files changed (2) hide show
  1. data/lib/dyntool.rb +9 -7
  2. metadata +3 -3
data/lib/dyntool.rb CHANGED
@@ -59,10 +59,12 @@ class Authentication
59
59
  end
60
60
  # check if dyn.yaml configuration is same as commited in svn
61
61
  def SvnChk()
62
- @svn_chk=`svn stat dyn.yaml`
62
+ @svn_chk=`svn stat dyn.yml`
63
63
  if @svn_chk != ""
64
- puts "Your dyn.yaml is not identical to the svn copy, or not exist."
65
- puts "Run \"svn up\" before using this tool"
64
+ STDOUT.puts <<-EOF
65
+ Your dyn.yaml is not identical to the svn copy, or not exist.
66
+ Run "svn up" before using this tool
67
+ EOF
66
68
  exit 2
67
69
  end
68
70
  end
@@ -72,7 +74,7 @@ class Parameters
72
74
  def SetArgs=( argv )
73
75
  @ARGV = argv
74
76
  @sconf = LoadConfig.new()
75
- @sconf.SetConfFile #= "dyn.yml"
77
+ @sconf.SetConfFile
76
78
  @sconf.GetHandler
77
79
  end
78
80
  # Opening Session to dyn using creds from the command line
@@ -199,8 +201,7 @@ class Parameters
199
201
  @operate.SetOperation("DeleteNode")
200
202
  @operate.SetSession(@session)
201
203
  @operate.SetArgs(@zone,@ARGV[2])
202
- when "service" then #ValidateZone(@ARGV[3])
203
- @services = @session.GetServices()
204
+ when "service" then @services = @session.GetServices()
204
205
  ValidateServiceExist(@services,@ARGV[2])
205
206
  @operate.SetOperation("DeleteService")
206
207
  @operate.SetSession(@session)
@@ -336,6 +337,7 @@ class Parameters
336
337
  add a fqdn(a) ip example: dynamo.rb add a mynode.example.com 11.12.13.14
337
338
  add cname zone fqdn(a) fqdn(cname) example: dynamo.rb add cname mycnamenode.example.com mynode.example.com
338
339
  add txt zone fqdn(a) "some text" example: dynamo.rb add txt mynode.example.com "this is some text"
340
+ add zone zonename example: dynamo.rb add zone example2.com
339
341
 
340
342
 
341
343
  * del: Deleting a node or service *
@@ -527,7 +529,7 @@ class OperateDyn
527
529
  def BuildService(service,flag,shiftfrom,shifto)
528
530
  puts "Generating the geo service data"
529
531
  @@conf = LoadConfig.new()
530
- @@conf.SetConfFile #= "dyn.yml"
532
+ @@conf.SetConfFile
531
533
  @@conf.GetHandler
532
534
  @regions = @@conf.GetRegions
533
535
  @dcs = @@conf.GetDcs
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ariel Moskovich
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2013-09-07 00:00:00 +03:00
17
+ date: 2013-09-08 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies: []
20
20