Sha256: 6a45cf3a02fe62a7aaa8e03e1e1559b99e0bff61a38fc74ecbe8779cc6399356
Contents?: true
Size: 975 Bytes
Versions: 25
Compression:
Stored size: 975 Bytes
Contents
require 'rbbt/resource' require 'rbbt' load Rbbt.etc['app.d/init.rb'].find $class_name = class_name = File.basename(FileUtils.pwd) $app = app = eval "class #{class_name} < Sinatra::Base; self end" app.class_eval do Log.info{"Loading: " << Rbbt.etc['app.d/base.rb'].find} eval Rbbt.etc['app.d/base.rb'].read, nil, Rbbt.etc['app.d/base.rb'].find end #{{{ RESOURCES Log.info{"Loading: " << Rbbt.etc['app.d/resources.rb'].find} load Rbbt.etc['app.d/resources.rb'].find #{{{ ENTITIES Log.info{"Loading: " << Rbbt.etc['app.d/entities.rb'].find} load Rbbt.etc['app.d/entities.rb'].find #{{{ FINDER app.class_eval do Log.info{"Loading: " << Rbbt.etc['app.d/finder.rb'].find} eval Rbbt.etc['app.d/finder.rb'].read end #{{{ POST Log.info{"Loading: " << Rbbt.etc['app.d/post.rb'].find if Rbbt.etc['app.d/post.rb'].exists?} load Rbbt.etc['app.d/post.rb'].find if Rbbt.etc['app.d/post.rb'].exists? #{{{ RUN $title = class_name require 'rack' use Rack::Deflater run app
Version data entries
25 entries across 25 versions & 1 rubygems