Sha256: 317a1d25ab7391266f5e5ded0292ba0d58343fc5af5b3999a7bf76d2c54be864

Contents?: true

Size: 306 Bytes

Versions: 6

Compression:

Stored size: 306 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]

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

Version data entries

6 entries across 6 versions & 3 rubygems

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