Commit c868c312 authored by Laurent Briais's avatar Laurent Briais

Avoid multiple instantiation of project

parent 74cee0f5
......@@ -56,7 +56,7 @@ module PowerStencil
end
def apply_plugins_dsl_definition(context)
project.plugins.each do |_, plugin|
project.plugins_sorted_by_dependency.each do |plugin|
plugin.apply_extra_dsl context
end
end
......
......@@ -17,12 +17,12 @@ module PowerStencil
logger.debug 'Starting PowerStencil initialization...'
setup_system_processors
setup_universe_compiler_logger
try_to_load_project fail_on_error: false
project fail_on_error: false
logger.debug 'PowerStencil initialization complete'
end
def project
@project ||= try_to_load_project
def project(fail_on_error: true)
@project ||= try_to_load_project fail_on_error: fail_on_error
end
private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment