Sha256: 99c62207d4ced7bd91b47f1968510778d48a24e73ed0e42174f9372a3b2d427b

Contents?: true

Size: 329 Bytes

Versions: 6

Compression:

Stored size: 329 Bytes

Contents

#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '_common.rb')

require 'mongo/gridfs'
include GridFS

db = Connection.new(DEFAULT_HOST, DEFAULT_PORT).db(DEFAULT_DB)

input_file = ARGV[0]
output_file = ARGV[1]

File.open(output_file, "w") { |f|
  GridStore.open(db, input_file, "r") { |g|
    f.write(g.read)
  }
}

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
mongodb-mongo-0.13 test/mongo-qa/gridfs_out
mongodb-mongo-0.14.1 test/mongo-qa/gridfs_out
mongodb-mongo-0.14 test/mongo-qa/gridfs_out
pahagon-mongo-abd-0.14.1 test/mongo-qa/gridfs_out
mongo-0.15.1 test/mongo-qa/gridfs_out
mongo-0.15 test/mongo-qa/gridfs_out