Sha256: a833132dfa5c13071d0d3b6c7ddfa33748020f9147af3c5e473e1ebdeae317ea

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 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 => "#{self.to_s} secret!!"


#{{{ DIRECTORIES
local_var = Rbbt.var#.find(:current)
set :cache_dir           , local_var.sinatra.cache.find
set :persist_dir         , local_var.sinatra.cache.persistence.find
set :persist_options     , {:persist => true, :persist_dir => :persist_dir}
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

2 entries across 2 versions & 1 rubygems

Version Path
rbbt-util-5.14.16 etc/app.d/base.rb
rbbt-util-5.14.15 etc/app.d/base.rb