...
 
Commits (2)
......@@ -46,13 +46,18 @@ module PowerStencil
targets = targets_from_criteria analyse_extra_params, project.engine.root_universe
raise PowerStencil::Error, 'No valid entity specified' if targets.empty?
project.engine.build targets, fail_on_error: config[:'fail-on-error'], parallelized: config[:parallelized]
build_ok = true
project.engine.last_build_report.each do |entity_full_name, entity_report|
if entity_report == ['Ok']
puts " - '#{entity_full_name}' has been correctly built"
else
build_ok = false
puts_and_logs " - Failed to build '#{entity_full_name}' because #{entity_report.join}", logs_as: :error, check_verbose: false
end
end
unless build_ok
raise PowerStencil::Error, 'Could not complete build !'
end
end
......
......@@ -63,6 +63,7 @@ module PowerStencil
end
def setup_climatic(cmd_line_args)
::UltraCommandLine.slop_options[:suppress_errors] = true
mngr = Climatic::ConfigLayers::CommandLineLayer.build_command_line_manager base_commands_definition_file
Climatic.bootstrap cmd_line_args: cmd_line_args, command_manager: mngr
mngr.commands.each do |command|
......
......@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_dependency 'climatic', '~> 0.2.35'
spec.add_dependency 'climatic', '~> 0.2.37'
spec.add_dependency 'dir_glob_ignore', '~> 0.3'
spec.add_dependency 'universe_compiler', '~> 0.5.6'
spec.add_dependency 'pry'
......