Module: Redcuine

Defined in:
lib/redcuine.rb,
lib/redcuine/base.rb,
lib/redcuine/issue.rb,
lib/redcuine/resource.rb,
lib/redcuine/optparser.rb,
lib/redcuine/config_setup.rb

Defined Under Namespace

Modules: ConfigSetup, OptParser, Resource Classes: Base, Issue

Constant Summary collapse

CONFIG =
{}
CONF_DIR =
File.expand_path('~/.redcuine')
CONF_FILE =
File.join(Redcuine::CONF_DIR, 'config.yml')

Class Method Summary collapse

Class Method Details

.load_config!Object



24
25
26
27
# File 'lib/redcuine.rb', line 24

def self.load_config!
  ConfigSetup.run
  CONFIG.replace(YAML.load(IO.read(CONF_FILE)))
end