Sha256: 2f1b22614fd3376918b2365cb5dc309f0d9e1da3bd7ce6343f15163af919aa6f
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
# coding: utf-8 # # # module UzuUzu Apps = {} # def app if Apps.blank? Application.new end app = {} Apps.each do |key, value| rack_session = value.environments.rack_session static = Rack::Static.new(value, :urls => ['/'], :root => 'public') if key == :uzuuzu app['/'] = rack_session.app(Rack::Cascade.new([static, value])) else app["/#{key}"] = rack_session.app(Rack::Cascade.new([static, value])) end end Rack::URLMap.new(app) end # def current Application.current end def apps Apps end # def logger Environments.current.logger end # def datastore Environments.current.datastore end # def kvs Environments.current.kvs end # def memcache Environments.current.memcache end # def mailer Environments.current.mailer end def localize Environments.current.localize end def controller Controller.current end def helper Helper.current end def request Request.current end def response Response.current end def model Model end def service Service end # def render_engine(instance, view_string, engine='erb', options={}, locals={}, &block) Tilt.render_engine(instance, view_string, engine, options, locals, &block) end extend self end # UzuUzu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uzuuzu-core-0.0.10 | lib/uzuuzu/wrapper/uzuuzu.rb |