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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dyntool.rb +8 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05386bb83c20bb567980e2815f2ca6e11098d212
4
- data.tar.gz: 50e567b4258fb0c323a6930659f47649341a821e
3
+ metadata.gz: bc0331fc6cbd1dbf4099a458805efe63aeb9d7b2
4
+ data.tar.gz: bbb2b963ab81ad9523f10f0ec409e3f29a13e016
5
5
  SHA512:
6
- metadata.gz: 76d4c4330989fe661fffbf32290b9db6c9023f2c017b72c677472953037b2b2578d73a98ebc06a0480a333c53428b6059f1433cb5770caed7c0f532b05bd214d
7
- data.tar.gz: 5ef8221c147cbcb93cb3c2779b6670ed39fd330b977ff777a37b6ed67def545cb5fd2478a7eac1772ed9461149a4fcf986adf44f9bb26ee9ec784f39a82230de
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 = "./dyn.yml"
80
- @tmpfile = "./status.yml"
81
- if [shiftfrom == ""] && [shifto == ""]
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.copy(@confile,@tmpfile)
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
- @conf.SetDcsEnabled(region,service,@dcs)
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.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-09 00:00:00.000000000 Z
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