Sha256: 592abeb249ad0c7f64a09e5e16cd3590b6960acfc715d2bb2e9772cd4ea302cc

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

require "mongo_browser/version"

require "mongo"
require "json"

module MongoBrowser
  DEFAULT_MONGODB_HOST = "127.0.0.1"
  DEFAULT_MONGODB_PORT = 27017

  class << self
    attr_writer :mongodb_host
    attr_writer :mongodb_port

    def mongodb_host
      @mongodb_host || DEFAULT_MONGODB_HOST
    end

    def mongodb_port
      @mongodb_port || DEFAULT_MONGODB_PORT
    end
  end
end

require "mongo_browser/models/pager"
require "mongo_browser/models/server"
require "mongo_browser/models/database"
require "mongo_browser/models/collection"
require "mongo_browser/models/document"

require "mongo_browser/application"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_browser-0.2.0.rc2 lib/mongo_browser.rb