spec/build/graph/process_graph.rb in build-graph-1.2.1 vs spec/build/graph/process_graph.rb in build-graph-1.3.0

- old
+ new

@@ -1,10 +1,12 @@ require 'process/group' require 'build/files' require 'build/graph' +require 'event/shell' + class ProcessNode < Build::Graph::Node def initialize(inputs, outputs, block, title: nil) super(inputs, outputs, block.source_location) if title @@ -43,10 +45,11 @@ @node.dirty? end def run(*arguments) if wet? - puts "\t[run] #{arguments.join(' ')}" + @walker.logger.debug(self) {Event::Shell.for(*arguments)} + status = @group.spawn(*arguments) if status != 0 raise CommandError.new(status) end