Class: Fyodor::ConfigGetter

Inherits:
Object
  • Object
show all
Defined in:
lib/fyodor/config_getter.rb

Constant Summary collapse

DEFAULT_CONFIG_PATH =
File.dirname(__FILE__) + "/../../share/defaults/fyodor.toml"
DEFAULT_TEMPLATE_PATH =
File.dirname(__FILE__) + "/../../share/defaults/template.erb"

Instance Method Summary collapse

Instance Method Details

#configObject



11
12
13
14
15
16
17
18
19
# File 'lib/fyodor/config_getter.rb', line 11

def config
  return @config if defined?(@config)

  Hash.include CoreExtensions::Hash::Merging
  config = default_config.deep_merge(user_config)
  config["output"]["template"] = template

  @config = config
end