Sha256: 4c92e27ffbb65f4973e6b8a963e785937a57da92cb7381d2b6bb1242afc1452d

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

require File.dirname(__FILE__) + '/base'
require File.dirname(__FILE__) + '/auth'

require File.dirname(__FILE__) + '/user_api'
require File.dirname(__FILE__) + '/bucket_api'
require File.dirname(__FILE__) + '/log_api'

module Logman
  class WebConsole < ConsoleBase
      set :public_folder, File.dirname(__FILE__) + '/static'
      set :views, File.dirname(__FILE__) + '/views'
      set :sessions => true
      
      use Logman::Auth
      use Logman::UserAPI
      use Logman::BucketAPI
      use Logman::LogAPI
      
      get '/', :auth => :user do
        erb :app, :locals=>{user: @user}
      end   
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logman-0.0.2 lib/console/web_console.rb