Module: Gitdocs
- Defined in:
- lib/gitdocs/cli.rb,
lib/gitdocs.rb,
lib/gitdocs/runner.rb,
lib/gitdocs/server.rb,
lib/gitdocs/manager.rb,
lib/gitdocs/version.rb,
lib/gitdocs/browser_app.rb,
lib/gitdocs/settings_app.rb,
lib/gitdocs/rendering_helper.rb
Overview
rubocop:disable LineLength, ClassLength
Defined Under Namespace
Modules: RenderingHelper Classes: BrowserApp, Cli, Configuration, Manager, Notifier, Repository, Runner, Search, Server, SettingsApp
Constant Summary collapse
- DEBUG =
ENV['DEBUG']
- Restart =
Class.new(RuntimeError)
- VERSION =
'0.5.0'
Class Method Summary collapse
- .restart ⇒ Object
-
.start(options = {}, &blk) ⇒ Object
Gitdocs.start(:config_root => “…”, :debug => true).
- .stop ⇒ Object
Class Method Details
.restart ⇒ Object
34 35 36 |
# File 'lib/gitdocs.rb', line 34 def self.restart @manager.restart end |
.start(options = {}, &blk) ⇒ Object
Gitdocs.start(:config_root => “…”, :debug => true)
27 28 29 30 31 32 |
# File 'lib/gitdocs.rb', line 27 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
38 39 40 |
# File 'lib/gitdocs.rb', line 38 def self.stop @manager.stop end |