Sha256: 6c0721775fc05c087430b989b7cc7619ea74d9607cbf54a7c83c6d40bcb2800c

Contents?: true

Size: 656 Bytes

Versions: 3

Compression:

Stored size: 656 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
require File.expand_path( File.join(File.dirname(__FILE__), %w[.. lib mongo3]))
require File.join(File.dirname(__FILE__), %w[.. lib main.rb])

def open(path)
  case RUBY_PLATFORM
    when /darwin/
      system 'open', path
    when /mswin(?!ce)|mingw|cygwin|bccwin/
      system 'start', path
    else
      system 'firefox', path
  end
end

Thread.new do 
  puts "\n"*2
  puts ">>> Waiting for Franky to warm up..."
  puts "\n"*2  
  sleep( 3 )
  puts "\n"*2  
  puts "\n\n >>> Opening console..."
  puts "\n"*2
  open( "http://localhost:6666/explore" )
end

Sinatra::Application.run! :port => 6666

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongo3-0.0.3 bin/mongo3
mongo3-0.0.2 bin/mongo3
mongo3-0.0.1 bin/mongo3