diff --git a/lib/comfpile/core.rb b/lib/comfpile/core.rb index 658c3a1..b0c5d61 100644 --- a/lib/comfpile/core.rb +++ b/lib/comfpile/core.rb @@ -154,5 +154,16 @@ module Comfpile puts "Done after #{step_count} exec loops..." end + def craft_and_complete(stage, target) + artefact = craft_artefact(stage, target) + + return nil if artefact.nil? + + while artefact.in_progress? + execute_step + end + + artefact + end end end \ No newline at end of file