Class: Yeah::Web::Server::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/yeah/web/server.rb

Overview

Web::Runner is a Rack app that provides the runner webpage for Web::Server.

See Also:

Instance Method Summary collapse

Instance Method Details

#call(environment) ⇒ Object


60
61
62
63
64
65
# File 'lib/yeah/web/server.rb', line 60

def call(environment)
  runner_path = Pathname.new(__FILE__).join('..', 'runner.html.erb')
  html = ERB.new(File.read(runner_path)).result(binding)

  [200, {'Content-Type' => 'text/html'}, [html]]
end