Module: IronHammer::DefaultConfigurationBehavior

Included in:
Projects::DllProject
Defined in:
lib/iron_hammer/default_configuration_behavior.rb

Instance Method Summary collapse

Instance Method Details

#configuration(environment) ⇒ Object



5
6
7
8
9
10
# File 'lib/iron_hammer/default_configuration_behavior.rb', line 5

def configuration environment
  conf = IronHammer::Deliverables::ConfigurationFile::list :path => path_to_configuration, :environment => environment
  secondary_configuration = IronHammer::Deliverables::ConfigurationFile::list :path => path_to_configuration
  secondary_configuration.each {|c| conf << c unless conf.find {|prior| prior.name_on_package == c.name_on_package }}
  conf
end