dyntool 0.3.3 → 0.3.4
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.
- checksums.yaml +4 -4
- data/lib/dyntool.rb +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc0331fc6cbd1dbf4099a458805efe63aeb9d7b2
|
4
|
+
data.tar.gz: bbb2b963ab81ad9523f10f0ec409e3f29a13e016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 016b6dcf11da7dbdcbd2fc681f9a4b6c66a16d211d6ddb310bbdb8c6e1a5619c6fe17c0e96b9f64017c572a4fe67d518309569949b08db4258566d9e9c4b95fb
|
7
|
+
data.tar.gz: c07fa4aaeca57709288c838da6614f3970db49260675c9ef157d5b9e2fdda255e7a4c0ad6fcd9245f68e4a08f2cfff5c7ddeabba9ba418687ee6133c79347be2
|
data/lib/dyntool.rb
CHANGED
@@ -76,16 +76,16 @@ class LoadConfig
|
|
76
76
|
@apps = @conf['notify_apps']
|
77
77
|
end
|
78
78
|
def ConfManipulate(shiftfrom,shifto)
|
79
|
-
@confile = "
|
80
|
-
@tmpfile = "
|
81
|
-
if
|
79
|
+
@confile = "dyn.yml"
|
80
|
+
@tmpfile = "status.yml"
|
81
|
+
if (shiftfrom == "") && (shifto == "")
|
82
82
|
if File.file?(@tmpfile)
|
83
83
|
File.delete(@tmpfile)
|
84
84
|
end
|
85
85
|
@rfile = "dyn"
|
86
|
-
else
|
87
|
-
if File.file?(@tmpfile)
|
88
|
-
File.
|
86
|
+
else
|
87
|
+
if ! File.file?(@tmpfile)
|
88
|
+
File.syscopy(@confile,@tmpfile)
|
89
89
|
end
|
90
90
|
@rfile = "temp"
|
91
91
|
end
|
@@ -687,7 +687,7 @@ class OperateDyn
|
|
687
687
|
@dcs = @dcs + @shifto
|
688
688
|
end
|
689
689
|
if @ftype == "temp"
|
690
|
-
|
690
|
+
@@conf.SetDcsEnabled(region,service,@dcs)
|
691
691
|
end
|
692
692
|
end
|
693
693
|
if @dcs.nil?
|
@@ -704,7 +704,7 @@ class OperateDyn
|
|
704
704
|
@providers = @providers + @shifto
|
705
705
|
end
|
706
706
|
if @ftype == "temp"
|
707
|
-
SetDcProviders(dc,@providers)
|
707
|
+
@@conf.SetDcProviders(dc,@providers)
|
708
708
|
end
|
709
709
|
end
|
710
710
|
@providers.each do |provider|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dyntool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Moskovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Tool for manipulation dyn dns records
|
14
14
|
email: ariel@outbrain.com
|