Sha256: 0cbd28a944a00502629a994438a4349db18294ee5f42c65cda1e72da57e89ee2

Contents?: true

Size: 1.01 KB

Versions: 14

Compression:

Stored size: 1.01 KB

Contents

#{{{ MODULES AND HELPERS
register Sinatra::RbbtRESTMain
register Sinatra::RbbtRESTEntity
register Sinatra::RbbtRESTWorkflow
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

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

14 entries across 14 versions & 1 rubygems

Version Path
rbbt-util-5.5.29 etc/app.d/base.rb
rbbt-util-5.5.28 etc/app.d/base.rb
rbbt-util-5.5.27 etc/app.d/base.rb
rbbt-util-5.5.26 etc/app.d/base.rb
rbbt-util-5.5.25 etc/app.d/base.rb
rbbt-util-5.5.24 etc/app.d/base.rb
rbbt-util-5.5.23 etc/app.d/base.rb
rbbt-util-5.5.22 etc/app.d/base.rb
rbbt-util-5.5.21 etc/app.d/base.rb
rbbt-util-5.5.20 etc/app.d/base.rb
rbbt-util-5.5.19 etc/app.d/base.rb
rbbt-util-5.5.18 etc/app.d/base.rb
rbbt-util-5.5.17 etc/app.d/base.rb
rbbt-util-5.5.16 etc/app.d/base.rb