Sha256: 49db89046b01d5dcd17bbcbbfa6b655cfc2d6481b5d5978c78d02a216622317c

Contents?: true

Size: 445 Bytes

Versions: 13

Compression:

Stored size: 445 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'launchy'
require 'kicker'
require 'lib/smeg'

Smeg.root_dir = Dir.pwd + "/spec/support"

pid = fork {
  app = Rack::Builder.app {
    use Rack::Static, :root => Smeg.root_dir
    run Smeg::DevelopmentServer
  }
  Rack::Handler::Thin.run(app, :Port => 5000)
}

process do
  Smeg::Exporter.publish!
end

sleep 2
Launchy::Browser.run("http://localhost:5000/")


at_exit { Process.kill("QUIT", pid) }

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bonsai-1.3.2 .kick
bonsai-1.3.1 .kick
bonsai-1.3.0 .kick
bonsai-1.2.0 .kick
bonsai-1.1.6 .kick
bonsai-1.1.5 .kick
bonsai-1.1.4 .kick
bonsai-1.1.3 .kick
bonsai-1.1.2 .kick
bonsai-1.1.1 .kick
bonsai-1.1.0 .kick
bonsai-1.0.1 .kick
bonsai-1.0.0 .kick