Module: VHSKit
- Defined in:
- lib/vhskit.rb,
lib/vhskit/version.rb
Defined Under Namespace
Modules: OID Classes: Configurator, Handler, Server
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.run(opts, &block) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/vhskit.rb', line 6 def self.run(opts, &block) port = opts.delete(:port) || 5432 if opts.length > 0 raise ArgumentError.new("Unknown options: #{opts.keys.join ", "}") end conf = VHSKit::Configurator.new if block conf.instance_exec(&block) end VHSKit::Server.new(port, conf).run end |