Sha256: c5e03badf7c33a66ea8a7b720b19b93b1374ec8304445d36e2417f1dcfdc8906
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
# coding: utf-8 # # # module UzuUzu Apps = {} # def self.app if Apps.blank? UzuUzu::Application.new end app = {} Apps.each do |key, value| if key == :uzuuzu app['/'] = Rack::Cascade.new([Rack::Static.new(value, :urls => ['/'], :root => 'public'), value]) else app["/#{key}"] = Rack::Cascade.new([Rack::Static.new(value, :urls => ['/'], :root => 'public'), value]) end end Rack::URLMap.new(app) end # def self.current UzuUzu::Application.current end def self.apps UzuUzu::Apps end # def self.logger Environments.current.logger end # def self.datastore Environments.current.datastore end # def self.memcache Environments.current.memcache.memcache end # def self.repository(&b) Environments.current.repository(&b) end # def self.transaction(&b) Environments.current.transaction(&b) end # def self.mailler Environments.current.mailler end # def self.gae? if Environments.current.gae return true end false end def self.engine Environments.current.engine end def self.localize Environments.current.localize end # def self.auto_upgrade? return false if gae? return true if Environments.current.datastore.auto_upgrade? false end # def self.render_engine(instance, view_string, engine=::UzuUzu.engine, options={}, locals={}, &block) TiltWrapper.render_engine(instance, view_string, engine, options, locals, &block) end end # UzuUzu
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uzuuzu-core-0.0.8 | lib/uzuuzu/wrapper/uzuuzu.rb |
uzuuzu-core-0.0.7 | lib/uzuuzu/wrapper/uzuuzu.rb |
uzuuzu-core-0.0.6 | lib/uzuuzu/wrapper/uzuuzu.rb |