ec2-snapshot-replicator 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08f77e8e986502bd50f509c7e01b8fccd771ae3d
4
- data.tar.gz: f9a59a7b63193a630abb9332e2eb992a8c66820f
3
+ metadata.gz: 55624de661f4fbc2dcd0175dad6024f603e8f95e
4
+ data.tar.gz: a6dfc26ba418ad79adc0fee52b97ce3fdcc61269
5
5
  SHA512:
6
- metadata.gz: 2c2fafb83045cb9cb0802d0721e0084f8d0ece1c5bb42432add000d83e44bd1fd50b289b7f8bad944a0fff666eb0a8325f8845c918e0acc787e597b0feaae03f
7
- data.tar.gz: 1b334da2fdd62a622aa00031c9dee19290810e7c4dfcb608e332f8bf4967bd1da069ffe45ca0568f27b2312120ef2154770c37c3637e85f4ba888ef40c4cefb7
6
+ metadata.gz: a191546361c6fdfd1d13e4169c0b4490a763c64a3cae2d542f92b4c7c0e9447ea37a4788ad6e78e01620b942f11b4fe509b0b3733e7cf60455598b526d3fe615
7
+ data.tar.gz: 3b1b976e3b2998ed636e47905437e5245ab96ae29e777a15d4ffb0eadfe7061a74393f9676da0f884b3111ca975f4ae04985e113b009534f8e9c733de33c2914
@@ -22,10 +22,10 @@ module EC2
22
22
  def start
23
23
  config = Config.new
24
24
 
25
- config.load_options(options)
26
25
  if options[:config]
27
26
  config.load_yaml_file(options[:config])
28
27
  end
28
+ config.load_options(options)
29
29
 
30
30
  if options[:once]
31
31
  Engine.new(config).run_once
@@ -10,7 +10,8 @@ module EC2
10
10
 
11
11
  def load_options(options)
12
12
  self.members.each do |member|
13
- self[member] ||= options[member] || options[member.to_s]
13
+ value = options[member] || options[member.to_s]
14
+ self[member] = value if value
14
15
  end
15
16
  end
16
17
  end
@@ -1,7 +1,7 @@
1
1
  module EC2
2
2
  module Snapshot
3
3
  module Replicator
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2-snapshot-replicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai