Sha256: 7325652ea29eb073a3d08c66efd5d0aa671a578c2ae67f65e953da0cb3d7db82
Contents?: true
Size: 686 Bytes
Versions: 3
Compression:
Stored size: 686 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, :environment => 'production'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongo3-0.0.6 | bin/mongo3 |
mongo3-0.0.5 | bin/mongo3 |
mongo3-0.0.4 | bin/mongo3 |