Sha256: 4194b71e41e9ddbe8a3bbc391510773f546171aa014fe87c0e18b5d5f1109799

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

require 'glue/flexob'

require 'nitro/dispatcher'

module Nitro
	
# Configuration.

class Conf < Flexob

	def initialize(options)
		unless options.is_a?(Hash)
			raise ArgumentError.new('An options hash is required!')
		end

		# Default configuration parameters.

		hash = {
			:name => 'Nitro',
			:host => '0.0.0.0', # this is accessible as localhost on windows.
			:port => 9999,
			:dispatcher => Dispatcher.new,
			:template_root => 'templates',
			:public_root => 'public'
		}
		
		hash.update(options)

		super(hash)
	end

end

end

# * George Moschovitis <gm@navel.gr>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.20.0 lib/nitro/conf.rb