lib/calamum/config.rb in calamum-1.2.0 vs lib/calamum/config.rb in calamum-1.2.1

- old
+ new

@@ -1,6 +1,5 @@ -# require 'calamum' require 'mixlib/config' # Provides a class-based configuration object. # See https://github.com/opscode/mixlib-config class Calamum::Config @@ -12,10 +11,13 @@ def self.apply(config) merge!(config) self.doc_path = File.join(config[:path], 'docs') - self.tpl_path = File.join(File.dirname(__FILE__), 'templates', config[:template]) - raise "Unknown template #{config[:template]}" unless Calamum::VALID_TEMPLATES.include?(config[:template]) + self.tpl_path = File.join(File.dirname(__FILE__), + 'templates', + config[:template]) + unless Calamum::VALID_TEMPLATES.include?(config[:template]) + fail "Unknown template #{config[:template]}" + end end - end