Sha256: 5949ed5d129cad8364d19398ab132bbed2b806adf6dd252b743ae7f7bc898f78

Contents?: true

Size: 1000 Bytes

Versions: 11

Compression:

Stored size: 1000 Bytes

Contents

#{{{ MODULES AND HELPERS
register Sinatra::RbbtRESTMain
register Sinatra::RbbtRESTEntity
register Sinatra::RbbtRESTWorkflow
register Sinatra::RbbtRESTFileServer
register Sinatra::RbbtRESTKnowledgeBase
helpers Sinatra::RbbtMiscHelpers

#{{{ SESSIONS
use Rack::Session::Cookie, :key => 'rack.session',
  :path => '/',
  :expire_after => 2592000,
  :secret => 'StudyExplorer secret!!'


#{{{ DIRECTORIES
local_var = Rbbt.var.find(:current)
set :cache_dir           , local_var.sinatra.cache.find
set :file_dir            , local_var.sinatra.files.find
set :permalink_dir       , local_var.sinatra.permalink.find
set :favourites_dir      , local_var.sinatra.favourites.find
set :favourite_lists_dir , local_var.sinatra.favourite_lists
set :favourite_maps_dir  , local_var.sinatra.favourite_maps

#{{{ WORKFLOWS

if Rbbt.etc.workflows.find.exists?
 Rbbt.etc.workflows.find.read.split("\n").each do |workflow|
  Workflow.require_workflow workflow
  add_workflow Kernel.const_get(workflow), true
 end
end


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rbbt-util-5.5.15 etc/app.d/base.rb
rbbt-util-5.5.14 etc/app.d/base.rb
rbbt-util-5.5.13 etc/app.d/base.rb
rbbt-util-5.5.12 etc/app.d/base.rb
rbbt-util-5.5.11 etc/app.d/base.rb
rbbt-util-5.5.10 etc/app.d/base.rb
rbbt-util-5.5.9 etc/app.d/base.rb
rbbt-util-5.5.8 etc/app.d/base.rb
rbbt-util-5.5.7 etc/app.d/base.rb
rbbt-util-5.5.6 etc/app.d/base.rb
rbbt-util-5.5.5 etc/app.d/base.rb