class Middleman::Cli::Build

def shared_rack

Returns:
  • (Rack::Test::Session) -
def shared_rack
  @_shared_rack ||= begin
    mock = ::Rack::MockSession.new(shared_server.to_rack_app)
    sess = ::Rack::Test::Session.new(mock)
    response = sess.get("__middleman__")
    sess
  end
end