app-tools 1.16.1 → 1.16.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39d1a50850510e095f17e1230b17733363f16c9c
4
- data.tar.gz: 8ea05700bacbfd1beb37064e80942a734a25b17d
3
+ metadata.gz: b64fc53d70475212a0ffcd12eb559f6a4bd50575
4
+ data.tar.gz: 00cb6fe266f70fb152bc88e20597644d91e35738
5
5
  SHA512:
6
- metadata.gz: a1dc95e35d68d4ee85e9e192d054710c0515e87f595009348e8b0aa97215051be1305dc9aa62584c6e2912e1e9a3bbe4551929d7dc60bf048c2745f09aa1e210
7
- data.tar.gz: b175b297875fcff6789c7b7440bc307e1c106052b0d4f68fb70a90f9f259ac99f09cc4a3ab78cc7e172dafd45a82bad0d825b20ac6ff99b18cdd1eb2237a9493
6
+ metadata.gz: 7df2ca8af806b0da102dc58500cccc932b05b856a72b89b9da842214859b5dac93ede14739389b49b242d9c3876b97c10ac78a5ccdc77220a9af5afcd04e25bb
7
+ data.tar.gz: bbfa4542f413484392366daa4e1d5c43f1f622dd8d785ce2ab608baeaf3712890be5c363ba67ae8935dcffdb77366c18eecc666d121e9cb57b2a4caf0288bde1
data/bin/mongo-backup CHANGED
@@ -63,7 +63,11 @@ module AppTools
63
63
 
64
64
  puts "Backing up mongodb://#{mongo_server}/#{database} from #{local_host_name}"
65
65
 
66
- `#{mongodump_tool} -h #{mongo_server} -u #{user} -p #{password} -d #{database} -o #{dump_dir_name}`
66
+ if !(user.nil? and password.nil?)
67
+ `#{mongodump_tool} -h #{mongo_server} -u #{user} -p #{password} -d #{database} -o #{dump_dir_name}`
68
+ else
69
+ `#{mongodump_tool} -h #{mongo_server} -d #{database} -o #{dump_dir_name}`
70
+ end
67
71
 
68
72
  if $? != 0
69
73
  raise "Unable to create dump of mongodb://#{mongo_server}/#{database}"
@@ -1,3 +1,3 @@
1
1
  module AppTools
2
- VERSION = "1.16.1"
2
+ VERSION = "1.16.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.1
4
+ version: 1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Lyon-Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-28 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler