mondupe 0.0.20 → 0.0.21
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 +4 -4
- data/lib/mondupe.rb +0 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff88c3505fd4a307852ae8685f9f9ad8bb15c3b8
|
4
|
+
data.tar.gz: 106b4f838fef4fe9ccb7df6c19a3a4f588da13d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25496dd68a2b805032a9f1fc9a7f4b14bec20d46607514f7d54c5fe6e2f363bb69fc8f4f78cda237243133438e23914f63e49c5c3a842b8c13a9074484207744
|
7
|
+
data.tar.gz: efdd126b458627a5b25f71f7e1fc842d37cb88e55d1562aeaa56cf0429597d2526a983f33f121347c4c74695906a8f0e90cfac63c56a66e2dbb5a7de85466eda
|
data/lib/mondupe.rb
CHANGED
@@ -139,10 +139,6 @@ class Mondupe
|
|
139
139
|
puts "Removing database archive file"
|
140
140
|
`ssh -i #{ssh_key} #{ssh_user}@#{instance_ip} "rm -rf #{File.join(dump_tmp_path, dump_file_name)}"`
|
141
141
|
if $?.success? then puts "#{Time.now.to_s} - Archive removed!" else abort("Error removing archive") end
|
142
|
-
puts "#{Time.now.to_s} - Removing saved searches"
|
143
|
-
puts `ssh -i #{ssh_key} #{ssh_user}@#{instance_ip} "#{db_connect_string} --eval 'db.users.update({save_searches: {\\$ne: null}}, {\\$unset: {save_searches: \\"\\"}}, {multi: true})'"`
|
144
|
-
#Need to find a way to test the prior command as it does not return a success or fail like the other commands
|
145
|
-
#if $?.success? then puts "#{Time.now.to_s} - Saved searches removed" else abort("Error removing saved searches") end
|
146
142
|
puts "#{Time.now.to_s} - Cleaning up our mess..."
|
147
143
|
`ssh -i #{ssh_key} #{ssh_user}@#{instance_ip} "rm -rf #{File.join(dump_tmp_path, "#{mongo_db_name}")}"`
|
148
144
|
if $?.success? then puts "#{Time.now.to_s} - Mess cleaned up!" else abort("Error cleaning up after myself...") end
|