Method: PDK::Config#project_config

Defined in:
lib/pdk/config.rb

#project_configPDK::Config::Namespace

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The project level configuration settings.



91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/pdk/config.rb', line 91

def project_config
  context = @config_options['context']
  @project ||= PDK::Config::Namespace.new('project') do
    mount :environment, PDK::ControlRepo.environment_conf_as_config(File.join(context.root_path, 'environment.conf')) if context.is_a?(PDK::Context::ControlRepo)

    mount :validate, PDK::Config::YAML.new('validate', file: File.join(context.root_path, 'pdk.yaml'), persistent_defaults: true) do
      setting 'ignore' do
        default_to { [] }
      end
    end
  end
end