mongo-db-utils 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
  A little gem that simplifies backing up and copying your mongo dbs.
6
6
 
7
- ![Sample](https://github.com/edeustace/mongo-db-utils/raw/master/images/sample.png)
7
+ You can run as a script (eg for cron jobs, or in interactive mode):
8
+
9
+ ![Sample](https://github.com/edeustace/mongo-db-utils/raw/master/images/grab.png)
8
10
 
9
11
  It saves your database urls so any task is just a few clicks.
10
12
 
data/images/grab.png ADDED
Binary file
@@ -38,6 +38,8 @@ module MongoDbUtils
38
38
  options.each do |o|
39
39
  cmd << "#{o.key} #{o.value} " unless o.empty?
40
40
  end
41
+ #ensure that we drop everything before we restore.
42
+ cmd << "--drop "
41
43
  cmd << "#{source_folder}"
42
44
  `#{cmd}`
43
45
  end
@@ -1,4 +1,4 @@
1
1
  module MongoDbUtils
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  READY_FOR_USE = "(Alpha version - not for production use!!)"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo-db-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-01 00:00:00.000000000 Z
12
+ date: 2012-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -169,6 +169,7 @@ files:
169
169
  - README.md
170
170
  - Rakefile
171
171
  - bin/mongo-db-utils
172
+ - images/grab.png
172
173
  - images/sample.png
173
174
  - install_rdebug.sh
174
175
  - lib/mongo-db-utils/cli.rb