Sha256: 19917fa1dac1dca826152adceede334750b34df762a0cb425cf5b28722cac50c

Contents?: true

Size: 1.03 KB

Versions: 22

Compression:

Stored size: 1.03 KB

Contents

#{{{ MODULES AND HELPERS

register Sinatra::RbbtRESTWorkflow

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

register Sinatra::RbbtRESTMain
register Sinatra::RbbtRESTEntity
register Sinatra::RbbtRESTFileServer # Remove to prevent serving files
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



Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rbbt-util-5.5.59 etc/app.d/base.rb
rbbt-util-5.5.58 etc/app.d/base.rb
rbbt-util-5.5.57 etc/app.d/base.rb
rbbt-util-5.5.56 etc/app.d/base.rb
rbbt-util-5.5.55 etc/app.d/base.rb
rbbt-util-5.5.54 etc/app.d/base.rb
rbbt-util-5.5.53 etc/app.d/base.rb
rbbt-util-5.5.52 etc/app.d/base.rb
rbbt-util-5.5.51 etc/app.d/base.rb
rbbt-util-5.5.50 etc/app.d/base.rb
rbbt-util-5.5.49 etc/app.d/base.rb
rbbt-util-5.5.48 etc/app.d/base.rb
rbbt-util-5.5.47 etc/app.d/base.rb
rbbt-util-5.5.46 etc/app.d/base.rb
rbbt-util-5.5.45 etc/app.d/base.rb
rbbt-util-5.5.44 etc/app.d/base.rb
rbbt-util-5.5.43 etc/app.d/base.rb
rbbt-util-5.5.42 etc/app.d/base.rb
rbbt-util-5.5.41 etc/app.d/base.rb
rbbt-util-5.5.40 etc/app.d/base.rb