Sha256: 71a629c7c86f3541a4055d29d6c302d471cb49f45e9a435488e7dd9dbddaecf0

Contents?: true

Size: 323 Bytes

Versions: 13

Compression:

Stored size: 323 Bytes

Contents

module Devcenter::Previewer

  class WebServer
    require 'thin'

    def initialize(host, port, app)
      @host, @port = host, port
      Thin::Logging.silent = true
      @server = Thin::Server.new(@host, @port, app)
    end

    def start
      @server.start
    end

    def stop
      @server.stop
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
devcenter-1.1.0 lib/devcenter/previewer/web_server.rb
devcenter-1.1.0rc2 lib/devcenter/previewer/web_server.rb
devcenter-1.1.0rc1 lib/devcenter/previewer/web_server.rb
devcenter-1.0.7 lib/devcenter/previewer/web_server.rb
devcenter-1.0.6 lib/devcenter/previewer/web_server.rb
devcenter-1.0.4 lib/devcenter/previewer/web_server.rb
devcenter-1.0.3 lib/devcenter/previewer/web_server.rb
devcenter-1.0.1 lib/devcenter/previewer/web_server.rb
devcenter-1.0.0 lib/devcenter/previewer/web_server.rb
devcenter-0.0.14 lib/devcenter/previewer/web_server.rb
devcenter-0.0.13 lib/devcenter/previewer/web_server.rb
devcenter-0.0.12 lib/devcenter/previewer/web_server.rb
devcenter-0.0.11 lib/devcenter/previewer/web_server.rb