Sha256: 341c1328e2bbd5e80d86e63a61cf47d9c31d1dbb134f9c1a7cb0d2b7fce10c28

Contents?: true

Size: 337 Bytes

Versions: 12

Compression:

Stored size: 337 Bytes

Contents

#!/usr/bin/env ruby

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

require 'mongo/gridfs'
include XGen::Mongo::GridFS

db = Mongo.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

12 entries across 12 versions & 2 rubygems

Version Path
animehunter-mongo-0.9 tests/mongo-qa/gridfs_out
mongodb-mongo-0.10.1 tests/mongo-qa/gridfs_out
mongodb-mongo-0.10 tests/mongo-qa/gridfs_out
mongodb-mongo-0.11.1 tests/mongo-qa/gridfs_out
mongodb-mongo-0.11 tests/mongo-qa/gridfs_out
mongodb-mongo-0.12 tests/mongo-qa/gridfs_out
mongodb-mongo-0.6.5 tests/mongo-qa/gridfs_out
mongodb-mongo-0.6.6 tests/mongo-qa/gridfs_out
mongodb-mongo-0.6.7 tests/mongo-qa/gridfs_out
mongodb-mongo-0.7 tests/mongo-qa/gridfs_out
mongodb-mongo-0.8 tests/mongo-qa/gridfs_out
mongodb-mongo-0.9 tests/mongo-qa/gridfs_out