Sha256: 9c26cd527687c5652999a381fc5371e261951ab3fcc063edced00b0fc460a18a

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 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'

class 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

2 entries across 2 versions & 1 rubygems

Version Path
logman-0.1.0 lib/console/web_console.rb
logman-0.1.0.alpha lib/console/web_console.rb