class Gitdocs::Configuration::Config

NOTE: This record has been kept as a subclass to avoid changing the database table. There are other ways to achieve this, but this seemed most clear for now. [2015-06-26 – acant]

@!attribute start_frontend_port

@return [Boolean] defaults to true

@!attribute web_frontend_port

@return [Integer] defaults to 8888

Public Class Methods

global() click to toggle source

@return [Gitdocs::Configuration::Config]

# File lib/gitdocs/configuration.rb, line 43
def self.global
  fail if all.size > 1
  create! if all.empty?
  all.first
end