module Carraway::Config
Public Class Methods
backend()
click to toggle source
# File lib/carraway/config.rb, line 11 def backend @config['backend'] end
file_backend()
click to toggle source
# File lib/carraway/config.rb, line 23 def file_backend @config['file_backend'] end
gatsby_endpoint()
click to toggle source
# File lib/carraway/config.rb, line 19 def gatsby_endpoint @config['gatsby_endpoint'] || 'http://localhost:8000' end
labels()
click to toggle source
# File lib/carraway/config.rb, line 27 def labels @config['labels'] || {} end
load(file)
click to toggle source
# File lib/carraway/config.rb, line 6 def load(file) @config = YAML.load_file(file) Category.load(@config['categories']) end
port()
click to toggle source
# File lib/carraway/config.rb, line 15 def port @config['port'] || 5000 end
views_dir()
click to toggle source
# File lib/carraway/config.rb, line 31 def views_dir @config['views_dir'] && ::File.expand_path(Dir.new(@config['views_dir'])) end