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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mondupe.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14039c9391a91da785e7e8b837a23fd7d6eab971
4
- data.tar.gz: 585a0cea931df1fc3e5d580e8344c88369c38754
3
+ metadata.gz: 2093c123f17698ff9c2455f420306b124d93cdcb
4
+ data.tar.gz: 880ab51f47877048f2085e2ebcf8f077e18c6375
5
5
  SHA512:
6
- metadata.gz: 4bb20d98cc526259c70aa8dfd8d218ced240a66be6e3c3d6a062d7990306c61bc14a44b6603340c12ff2f5783daa1e2c24b0be8f55314da6f4eea5e6102a5c22
7
- data.tar.gz: e0e33aec7535e6400b8f5524b50a6ee54a7381d788583930c831729f7b971447531c5f19168f5e7d4b4a49c95179695eeb8b85d3f2fb022fa505dace4f65ee86
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
- if $?.success? then puts "#{Time.now.to_s} - Saved searches removed" else abort("Error removing saved searches") end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mondupe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hutchins