mongolly 0.2.19 → 0.3.0

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
- SHA1:
3
- metadata.gz: fa9a9bc9641c46ad2b74e4530c4184566843d719
4
- data.tar.gz: da3009f011c727d28cb665865f63ec7f0a0ca148
2
+ SHA256:
3
+ metadata.gz: 674ba9e55b7f113daf1eb89bff879fbf46c6f092cdf02a3aa175b96f996763f8
4
+ data.tar.gz: 33d44b47a265751dc107126480fa9fef7c46e5226449edd07eddf1b19f6a017c
5
5
  SHA512:
6
- metadata.gz: 4bc7ef72f9d3f159370b17d8f3e8d46fcd85b24ec5c4cc9c4ddc84879d4537fcb451b340abbbd437a0247c9e39d8d5083f1c2cf7129518ce538b94951b1b5397
7
- data.tar.gz: 8b429d04fa7508a242d2789bf0dcd699b1ce0a992ea19d21cc4032169e1761eeb374f032232382b3fb80edb16613fe2dfea3cfd3f05388fb7d2069dd3a74f2df
6
+ metadata.gz: 73f806c676b8453e0f60d3f54f280ae2a7f10bfc0226eab564bd5f0bd9fdccb92939854a318a66a1a6156ff146f00056bee8bf6e1b48dd5f7ff6e37cf5c8c6ff
7
+ data.tar.gz: 961d0fb47fe6ee3a50f89f9a6cba2a409f62483e44803573ec82f3fa24675029c9828ae8d1778b28dc02235f29deb8259d5edd8b851b3585e6cb98a79c0bd5f8
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Michael Saffitz
1
+ Copyright (c) 2012-2018 Michael Saffitz
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -6,6 +6,10 @@ require "mongolly"
6
6
 
7
7
  module Mongolly
8
8
  class Runner < Thor
9
+ def self.exit_on_failure?
10
+ true
11
+ end
12
+
9
13
  class_option :config, type: :string, aliases: "-c", default: "~/.mongolly", desc: "Path to config file"
10
14
 
11
15
  desc "backup", "Snapshots the Database EBS Volumes"
@@ -207,8 +207,8 @@ class Mongo::MongoClient
207
207
  def strong_unlock!(aggressive: false)
208
208
  @mongolly_logger.debug "Unlocking database..."
209
209
  return if @mongolly_dry_run
210
- if !locked?
211
- return if !aggressive
210
+ unless locked?
211
+ return unless aggressive
212
212
  raise UnxpectedUnlockException
213
213
  end
214
214
  return if !locked? && !aggressive
@@ -1,3 +1,3 @@
1
1
  module Mongolly
2
- VERSION = "0.2.19".freeze
2
+ VERSION = "0.3.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongolly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Saffitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2018-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.4.5.1
155
+ rubygems_version: 2.7.6
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Easy backups for EBS-based MongoDB Databases