Module: Mvnizer::Configuration
- Included in:
- Mvnizer::Command::NewProject, Mvnize
- Defined in:
- lib/mvnizer/configuration.rb
Instance Method Summary collapse
-
#conf(options) ⇒ Object
Loads configuration from config/default.yml and merges the values into the passed options hash.
Instance Method Details
#conf(options) ⇒ Object
Loads configuration from config/default.yml and merges the values into the passed options hash.
7 8 9 10 11 12 |
# File 'lib/mvnizer/configuration.rb', line 7 def conf() config_file = File.join(File.dirname(__FILE__), "..", "..", "conf", "default.yml") default_config = YAML.load_file(config_file) symbolize_keys(default_config.merge(symbolize_keys())) end |