class RoadForest::Application::ServicesHost
XXX Worth doing some meta to get reality checking of configs here? Better fail early if there’s no DB configured, right?
Attributes
application[W]
canonical_host[W]
default_content_engine[RW]
logger[W]
root_url[RW]
router[W]
type_handling[W]
Public Class Methods
new()
click to toggle source
# File lib/roadforest/application/services-host.rb, line 8 def initialize end
Public Instance Methods
augmenter()
click to toggle source
# File lib/roadforest/application/services-host.rb, line 22 def augmenter @augmenter ||= Augment::Augmenter.new(self) end
canonical_host()
click to toggle source
# File lib/roadforest/application/services-host.rb, line 18 def canonical_host @canonical_host ||= RDF::URI.intern(@root_url) end
dispatcher()
click to toggle source
# File lib/roadforest/application/services-host.rb, line 26 def dispatcher @dispatcher ||= Dispatcher.new(self) end
Also aliased as: router
logger()
click to toggle source
# File lib/roadforest/application/services-host.rb, line 43 def logger @logger ||= begin require 'logger' Logger.new("roadforest.log") end end
path_provider()
click to toggle source
# File lib/roadforest/application/services-host.rb, line 31 def path_provider @path_provider ||= router.path_provider end