Sha256: afa337a39fd0dbadbb99581905ca114a1abedbe5fc586a0558b010f7565c0026

Contents?: true

Size: 836 Bytes

Versions: 4

Compression:

Stored size: 836 Bytes

Contents

require 'thread'
require 'yajl'
require 'dante'
require 'socket'
require 'shell_tools'
require 'guard'
require 'grit'
require 'rugged'

require 'gitdocs/version'
require 'gitdocs/configuration'
require 'gitdocs/runner'
require 'gitdocs/server'
require 'gitdocs/cli'
require 'gitdocs/manager'
require 'gitdocs/docfile'
require 'gitdocs/rendering'
require 'gitdocs/notifier'
require 'gitdocs/repository'

module Gitdocs
  DEBUG = ENV['DEBUG']

  # Gitdocs.start(:config_root => "...", :debug => true)
  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

  def self.restart
    @manager.restart
  end

  def self.stop
    @manager.stop
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gitdocs-0.5.0.pre6 lib/gitdocs.rb
gitdocs-0.5.0.pre5 lib/gitdocs.rb
gitdocs-0.5.0.pre3 lib/gitdocs.rb
gitdocs-0.5.0.pre2 lib/gitdocs.rb