Sha256: d8c453fec4919bfd71cd789d20150ef8e0acc8c471ae71d13731aaed928b407b

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.dirname(__FILE__) + '/../lib')

require 'irb'
require 'rubygems'
require 'dm-core'

IRB.setup(nil)
irb = IRB::Irb.new

IRB.conf[:MAIN_CONTEXT] = irb.context

irb.context.evaluate("require 'irb/completion'", 0)
irb.context.evaluate(%(
  DataMapper.setup(:default,
    :adapter  => 'mongo',
    :hostname => 'localhost',
    :database => 'dm-mongo-test'
  )

  db = Mongo::Connection.new.db('dm-mongo-test')
), 0)

trap("SIGINT") do
  irb.signal_handle
end

catch(:IRB_EXIT) do
  irb.eval_input
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dm-mongo-adapter-0.6.0 bin/console
dm-mongo-adapter-0.2.0.pre3 bin/console
dm-mongo-adapter-0.2.0.pre2 bin/console
dm-mongo-adapter-0.2.0.pre1 bin/console