Sha256: 6f22db8f5a6d9d2812c939e1e1690fe6e7fb5e9a87319bceb4e492fa2179cc05
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
# = Nitro # # Copyright (c) 2004-2005, Navel Ltd (http://www.navel.gr) # Copyright (c) 2004-2005, George Moschovitis (http://www.gmosx.com) # # Nitro (http://www.nitrohq.com) is copyrighted free software # created and maintained by George Moschovitis (mailto:gm@navel.gr) # and released under the standard BSD Licence. For details # consult the file doc/LICENCE. require 'glue' require 'glue/logger' require 'glue/configuration' module Nitro # The version. Version = '0.28.0' # Library path. LibPath = File.dirname(__FILE__) # The path to the prototype application. setting :proto_path, :default => File.join(LibPath, '..', 'proto'), :doc => 'The path to the prototype application' # Add the src dir in the path. $LOAD_PATH.unshift File.join(LibPath, '..', 'src') end #-- # gmosx: leave them here. #++ require 'nitro/context' require 'nitro/controller' require 'nitro/dispatcher' require 'nitro/render' require 'nitro/server' unless $NITRO_NO_ENVIRONMENT # Setup up the proposed environment. You are free # to skip this if you dont like it. Just set # # $NITRO_NO_ENVIRONMENT = true # # before requiring nitro. # if $0 # mod_ruby set $0 to false # Put the start file dir in the path. Dir.chdir(File.dirname($0)) # Application code come here. $LOAD_PATH.unshift 'src' # Library code come here. $LOAD_PATH.unshift 'lib' # end end module Nitro class << self # A helper method to start a Nitro application. def run(controller = nil) Server.run(controller) end alias_method :start, :run end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.28.0 | lib/nitro.rb |