app-tools 1.16.1 → 1.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mongo-backup +5 -1
- data/lib/app_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b64fc53d70475212a0ffcd12eb559f6a4bd50575
|
4
|
+
data.tar.gz: 00cb6fe266f70fb152bc88e20597644d91e35738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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}"
|
data/lib/app_tools/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|