Sha256: 94ff5f99d5e1d3a5fa89ab64f98ab4c42bff0f3868e98197abf89d9d3040185a
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
module ProconBypassMan module Web class Configuration module ClassAttributes # @return [Logger] def logger config.logger end # @return [String] def root config.root end end # @return [Logger] def logger @logger || Logger.new(nil) end def logger=(logger) @logger = logger end # @return [String] def root @root || File.expand_path('../..', __dir__).freeze end def root=(path) @root = path end # @return [String] def db_path @db_path ||= ENV["DB_PATH"] || File.join(root, "pbm_web.db") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
procon_bypass_man-web-0.1.3 | lib/procon_bypass_man/web/configuration.rb |
procon_bypass_man-web-0.1.2 | lib/procon_bypass_man/web/configuration.rb |