Sha256: 4131c97df82aae069a9fe414981775c7051e94b8c4fd76f6c373f5c0fba1e793
Contents?: true
Size: 774 Bytes
Versions: 3
Compression:
Stored size: 774 Bytes
Contents
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'bundler' require "hashie/mash" require 'cgi' require "yaml" require 'sinatra/base' require 'mongo' require 'mongo_fe' begin config = Hashie::Mash.new (YAML.load(File.new(File.expand_path('~/.mongo_fe')))) || 'localhost:27017' MongoFe::MongoDB.uri = config.uri rescue $stderr.print "You must create a file in your home directory called .mongo_fe; error: #{$!.message}" exit 1 end # Encoding.default_internal = 'utf-8' # Encoding.default_external = 'utf-8' Dir.glob('../lib/{mongo_fe,mongo_fe/helpers,mongo_fe/controllers}/*.rb').each { |file| require file } use MongoFe::ApplicationController use MongoFe::DatabasesController use MongoFe::CollectionsController run Sinatra::Base
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongo_fe-0.1.2 | bin/config.ru |
mongo_fe-0.1.1 | bin/config.ru |
mongo_fe-0.1.0 | bin/config.ru |