lib/nitro/config.rb in nitro-0.7.0 vs lib/nitro/config.rb in nitro-0.8.0
- old
+ new
@@ -60,11 +60,11 @@
# The services map.
# :index represents the '/' mount point
$services = { :index => N::Service }
# The service method map.
-$methods = G::SafeHash.new
+$methods = N::SafeHash.new
# The shader. The default shader is very simple, here
# is a typical example of a production shader pipeline:
#
# <tt>
@@ -80,21 +80,21 @@
puts "\nRunning DEBUG configuration.\n\n"
# Logger (redirect to STDERR)
- $log = Logger.new(STDERR);
- $log.level = Logger::DEBUG
+ Logger.set(Logger.new(STDERR))
+ Logger.get.level = Logger::DEBUG
# If set to true disables xsl caching. Usefull when debugging xsls.
$reload_xsl = true
# If set to true disables script compilation. Usefull when debugging
# statically included scripts.
- $reload_scripts = true
+ $reload_scripts = true
# Standard server setup for debugging.
$srv_address = $appsrv_address = "127.0.0.1"
$srv_port = 8080
@@ -103,11 +103,11 @@
else
puts "\nRunning LIVE configuration.\n\n"
- $log = Logger.new("log/app.log", 10);
- $log.level = Logger::INFO
+ Logger.set(Logger.new("log/app.log", 10))
+ Logger.get.level = Logger::INFO
# If set to true disables xsl caching. Usefull when debugging xsls.
$reload_xsl = false