mongo-import 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongo-import/snapshot.rb +2 -2
- data/lib/mongo-import/version.rb +1 -1
- metadata +3 -3
@@ -21,8 +21,8 @@ module MongoImport
|
|
21
21
|
raise "Could not find #{@opts.exec} in your PATH" unless system("which #{opts.exec} > /dev/null")
|
22
22
|
|
23
23
|
file = File.join(@path, "#{@name}.json")
|
24
|
-
cmd = "#{opts.exec}
|
25
|
-
|
24
|
+
cmd = "#{opts.exec} --host #{opts.host} --port #{opts.port} --drop --db #{opts.db} --collection #{opts.collection} #{file}"
|
25
|
+
`#{cmd}`
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/mongo-import/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo-import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -223,7 +223,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
223
|
version: '0'
|
224
224
|
segments:
|
225
225
|
- 0
|
226
|
-
hash:
|
226
|
+
hash: 4372936097145585120
|
227
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
228
|
none: false
|
229
229
|
requirements:
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
segments:
|
234
234
|
- 0
|
235
|
-
hash:
|
235
|
+
hash: 4372936097145585120
|
236
236
|
requirements: []
|
237
237
|
rubyforge_project:
|
238
238
|
rubygems_version: 1.8.23
|