mondupe 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mondupe +1 -1
- data/lib/mondupe.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: fd527e46f1aa3a913e4e8d1e4e581dbc4b5d645e
|
4
|
+
data.tar.gz: e40aa94bc9812d4571484dc78d80c87e37446d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28495c6e4322efd5e19753de368ff7f9304f47f255b2ef6176f478c6784d6a14decbedc387f6aa2b297f8b288600aff9be3101e9b240608fd621bd8a17d40bce
|
7
|
+
data.tar.gz: effc48de84b6e750672b700cf380c6079742842da912b607440a9379807cc0e3cf391a9da244d0085f7a9abbb7fa8fa3aa99e5ac957651b781009ce23ede9048
|
data/bin/mondupe
CHANGED
@@ -24,7 +24,7 @@ opt_parser = OptionParser.new do |opt|
|
|
24
24
|
opt.separator " Requires -n [name] -a [host_address]"
|
25
25
|
opt.separator " Optional -t [tmpdir] -u [mongo_username] -p [mongo_password] -c [mongo_authdb]"
|
26
26
|
opt.separator " execute - Execute some java script against database"
|
27
|
-
opt.separator " Requires -
|
27
|
+
opt.separator " Requires -a [dns_address] -x '[javascript]'"
|
28
28
|
opt.separator " Optional -r [db_name]"
|
29
29
|
opt.separator " expire - (coming soon) Reset the expiration days of a node"
|
30
30
|
opt.separator " Requires ( -n [name] || -d [id] || -a [host_address] ) -e [expire_days]"
|
data/lib/mondupe.rb
CHANGED
@@ -140,7 +140,7 @@ class Mondupe
|
|
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
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: {
|
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
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
145
|
#if $?.success? then puts "#{Time.now.to_s} - Saved searches removed" else abort("Error removing saved searches") end
|
146
146
|
puts "#{Time.now.to_s} - Cleaning up our mess..."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mondupe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hutchins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|