snap-ebs 0.0.23 → 0.0.24

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: 62c41bd18a3cbb71c5371a5173dea68f58d36424
4
- data.tar.gz: f6746f30e90bb026ecb23bcdfdbc84fce247b25d
3
+ metadata.gz: 2061537094f47e4df011fc2d26e44e415b4b3bb0
4
+ data.tar.gz: cdd3279f8cfce83678b9e32d9a857e840bb73cdb
5
5
  SHA512:
6
- metadata.gz: 4dab5f0340738c8bc137fd46b03b84fafee0281f40ffd6078fbc48e2ffe236916caf6a5fa06c45376b4ddb98dcf0cbf37b8a9eb79916d47343c70dab57e0af1a
7
- data.tar.gz: af3ae2147a22fcac3759934a2f4b10e0d56dd6dde19bb5b9e6c0a9f64f0bd2e9ab6be4014f175e4b55a0a86a7cb03eabd89c1e7c782784801dc1f5ec2d95e9db
6
+ metadata.gz: 28ace1110e45b2f3477c83758fe6e6f334d8d6fa91763cea846ae4231e0df18070b7d0a8cb6c6119f1bdf14e448bdbf7e436939bbb6e1ca25852675ac4339ddd
7
+ data.tar.gz: c8277d4443918049ac3eb3463f06747301856d764f096c0c59afdc2989152be25c5a465da01af9e74f19d8b9af5e1020cb7a93a0e5057233be76d355e1e9882f
@@ -37,7 +37,7 @@ class SnapEbs::Plugin::MongoPlugin < SnapEbs::Plugin
37
37
  def before
38
38
  require 'mongo'
39
39
  Mongo::Logger.logger = logger
40
- return false unless safe_to_operate?
40
+ return false unless carefully('check if we can operate safely') { safe_to_operate? }
41
41
 
42
42
  if wired_tiger?
43
43
  logger.info "Wired Tiger storage engine detected"
@@ -96,12 +96,10 @@ class SnapEbs::Plugin::MongoPlugin < SnapEbs::Plugin
96
96
  end
97
97
 
98
98
  def primary?
99
- carefully 'check whether this node is a primary' do
100
- if @primary.nil?
101
- @primary = client.command(isMaster: 1).first['ismaster']
102
- end
103
- @primary
99
+ if @primary.nil?
100
+ @primary = client.command(isMaster: 1).first['ismaster']
104
101
  end
102
+ @primary
105
103
  end
106
104
 
107
105
  def standalone?
@@ -1,3 +1,3 @@
1
1
  class SnapEbs
2
- VERSION = '0.0.23'
2
+ VERSION = '0.0.24'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snap-ebs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Conrad
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.0'
47
+ version: '2.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
54
+ version: '2.2'
55
55
  description: Tested, service-aware and consistent AWS EC2 backups via EBS snapshots.
56
56
  email: bryan.conrad@synctree.com
57
57
  executables: