Sha256: 5b8a625c4a01568d9e2a1df8a8433eb848d2856f5a8b0eedef25775b1b985228

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

require 'sinatra/base'
require 'haml'

module AutoResp

  class SessionViewer < Sinatra::Base

    class << self
      attr_accessor :proxy_server
    end

    set :views, File.join(settings.root, 'viewer/tmpl')

    get '/' do
      haml :index
    end

    before('/') do
      @sessions = SessionViewer.proxy_server.sessions.dup
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auto_response-0.1.6 lib/ar/session_viewer.rb