lib/rake/funnel/tasks/environments.rb in rake-funnel-0.0.6.pre vs lib/rake/funnel/tasks/environments.rb in rake-funnel-0.1.0.pre
- old
+ new
@@ -4,12 +4,14 @@
require path
end
module Rake::Funnel::Tasks
class Environments < Rake::TaskLib
- attr_accessor :base_dir, :default_env, :default_config, :local_config
+ include Rake::Funnel::Support::Environments
+ attr_accessor :base_dir, :default_env, :default_config, :local_config, :customizer
+
def initialize
@default_env = nil
@default_config = 'default'
@local_config = 'local'
@base_dir = 'config'
@@ -24,10 +26,10 @@
private
def define
environments.each do |env|
desc "Configure for the #{env[:name]} environment"
task env[:name] do
- EnvironmentsSupport::Loader.load_configuration(env)
+ Loader.load_configuration(env, configatron, customizer)
end
end
end
def environments