Module: Gitdocs
- Defined in:
- lib/gitdocs.rb,
lib/gitdocs/cli.rb,
lib/gitdocs/runner.rb,
lib/gitdocs/server.rb,
lib/gitdocs/docfile.rb,
lib/gitdocs/manager.rb,
lib/gitdocs/version.rb,
lib/gitdocs/configuration.rb
Defined Under Namespace
Classes: Cli, Configuration, Docfile, Manager, Runner, Server
Constant Summary collapse
- DEBUG =
ENV['DEBUG']
- Restart =
Class.new(RuntimeError)
- VERSION =
"0.4.15"
Class Method Summary collapse
- .restart ⇒ Object
-
.start(options = {}, &blk) ⇒ Object
Gitdocs.start(:config_root => "...", :debug => true).
- .stop ⇒ Object
Class Method Details
.restart ⇒ Object
29 30 31 |
# File 'lib/gitdocs.rb', line 29 def self.restart @manager.restart end |
.start(options = {}, &blk) ⇒ Object
Gitdocs.start(:config_root => "...", :debug => true)
22 23 24 25 26 27 |
# File 'lib/gitdocs.rb', line 22 def self.start(={}, &blk) = { :debug => DEBUG, :config_root => nil }.merge() @manager.stop if @manager @manager = Manager.new([:config_root], [:debug], &blk) @manager.start([:port]) end |
.stop ⇒ Object
33 34 35 |
# File 'lib/gitdocs.rb', line 33 def self.stop @manager.stop end |