lib/rake/funnel/support/environments/loader.rb in rake-funnel-0.22.1 vs lib/rake/funnel/support/environments/loader.rb in rake-funnel-0.22.2

- old
+ new

@@ -6,30 +6,29 @@ module Support module Environments class Loader class << self def load_configuration(config, store = configatron, customizer = nil) - Rake.rake_output_message("Configuring for #{config[:name]}") + $stderr.print("Configuring for #{config[:name]}\n") store.unlock! store.reset! store.env = config[:name] load(config, store) customizer.call(store) if customizer && customizer.respond_to?(:call) store.lock! - Rake.rake_output_message('') - Rake.rake_output_message(store.inspect) + $stderr.print("\n" + store.inspect + "\n") end private def load(config, store) operation = 'Loading' config.fetch(:config_files, []).each do |file| - Rake.rake_output_message("#{operation} #{file}") + $stderr.print("#{operation} #{file}\n") operation = 'Merging' yaml = File.read(file) yaml = evaluate_erb(yaml, file) yaml = YAML.load(yaml) || {} # rubocop:disable Security/YAMLLoad