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