Sha256: 962f6063537449339333f29fe9b55ca0b6bb3122ad242b401320226fcb4d74a0

Contents?: true

Size: 833 Bytes

Versions: 4

Compression:

Stored size: 833 Bytes

Contents

module Spider

    class HomeController < Controller
        include StaticContent
        route 'spider/public', Spider.controller, :prepend => 'public/'
        #        route 'spider', Spider.controller

        def self.route_app(app)
            #app_path = app.name.gsub('::', '/')
            app_path = app.route_url
            Spider::Logger.debug("ROUTING #{app_path} TO #{app.controller}")
            route(app_path, app.controller, :ignore_case => true)
        end

        def self.pub_path
            Spider.paths[:root]+'/public'
        end

        def self.pub_url
            HTTPMixin.reverse_proxy_mapping('/public')
        end
        
        def self.app_pub_path(app=nil)
            path = self.pub_path+'/apps'
            path += '/'+app.short_name if app
            path
        end

    end


end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spiderfw-0.5.13 lib/spiderfw/controller/home_controller.rb
spiderfw-0.5.12 lib/spiderfw/controller/home_controller.rb
spiderfw-0.5.11 lib/spiderfw/controller/home_controller.rb
spiderfw-0.5.10 lib/spiderfw/controller/home_controller.rb