mondupe 0.0.7 → 0.0.8
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 +3 -2
- 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: 2093c123f17698ff9c2455f420306b124d93cdcb
|
4
|
+
data.tar.gz: 880ab51f47877048f2085e2ebcf8f077e18c6375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fe6d84eba9f05e83874692de0bd202e0621f8e72f4dd5d6794cda8eee9ccfd741b6d087c476359b7c033623f6805f4efee71753ada705d0d4c560ff368a326f
|
7
|
+
data.tar.gz: 9bd377bdbb0cfaf96ef58a61964ff0e598e8e06516c3ac7ad4e3279006884b5d07f22ecbdabab0914ed6f88e29d3ecf85d4ca95c9c903f9bf37f60aedb8e27d6
|
data/lib/mondupe.rb
CHANGED
@@ -132,8 +132,9 @@ class Mondupe
|
|
132
132
|
`ssh -i #{ssh_key} #{ssh_user}@#{instance_ip} "rm -rf #{File.join(dump_tmp_path, dump_file_name)}"`
|
133
133
|
if $?.success? then puts "#{Time.now.to_s} - Archive removed!" else abort("Error removing archive") end
|
134
134
|
puts "#{Time.now.to_s} - Removing saved searches"
|
135
|
-
`ssh -i #{ssh_key} #{ssh_user}@#{instance_ip} "mongo cde_production --eval \\"db.users.update({save_searches: {$ne: null}}, {$unset: {save_searches: ''}}, {multi: true})\\""`
|
136
|
-
|
135
|
+
puts `ssh -i #{ssh_key} #{ssh_user}@#{instance_ip} "mongo cde_production --eval \\"db.users.update({save_searches: {$ne: null}}, {$unset: {save_searches: ''}}, {multi: true})\\""`
|
136
|
+
#Need to find a way to test the prior command as it does not return a success or fail like the other commands
|
137
|
+
#if $?.success? then puts "#{Time.now.to_s} - Saved searches removed" else abort("Error removing saved searches") end
|
137
138
|
puts "#{Time.now.to_s} - Cleaning up our mess..."
|
138
139
|
`ssh -i #{ssh_key} #{ssh_user}@#{instance_ip} "rm -rf #{File.join(dump_tmp_path, 'cde_production')}"`
|
139
140
|
if $?.success? then puts "#{Time.now.to_s} - Mess cleaned up!" else abort("Error cleaning up after myself...") end
|