Sha256: 6b3b5883f687cd129c85658a870f1aa6483622a034b4fce205a7e86087984dfd

Contents?: true

Size: 446 Bytes

Versions: 9

Compression:

Stored size: 446 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true
# rubocop:todo all

$LOAD_PATH[0, 0] = File.join(File.dirname(__FILE__), '..', 'lib')

require 'mongo'
# include the mongo namespace
include Mongo

begin
  require 'pry'
rescue LoadError
end

begin
  require 'irb'
rescue LoadError
end

if defined?(Pry)
  Pry.config.prompt_name = 'mongo'
  Pry.start
elsif defined?(IRB)
  IRB.start
else
  abort 'LoadError: mongo_console requires Pry or IRB'
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mongo-2.21.0 bin/mongo_console
mongo-2.20.1 bin/mongo_console
mogno-2.20.0 bin/mongo_console
mogno-1.0.0 bin/mongo_console
mongo-2.20.0 bin/mongo_console
mongo-2.19.3 bin/mongo_console
mongo-2.19.2 bin/mongo_console
mongo-2.19.1 bin/mongo_console
mongo-2.19.0 bin/mongo_console