lib/gitdocs.rb in gitdocs-0.4.15 vs lib/gitdocs.rb in gitdocs-0.5.0.pre1
- old
+ new
@@ -13,15 +13,14 @@
require 'gitdocs/manager'
require 'gitdocs/docfile'
require 'gitdocs/rendering'
module Gitdocs
-
DEBUG = ENV['DEBUG']
# Gitdocs.start(:config_root => "...", :debug => true)
- def self.start(options={}, &blk)
- options = { :debug => DEBUG, :config_root => nil }.merge(options)
+ def self.start(options = {}, &blk)
+ options = { debug: DEBUG, config_root: nil }.merge(options)
@manager.stop if @manager
@manager = Manager.new(options[:config_root], options[:debug], &blk)
@manager.start(options[:port])
end