lib/build/task.rb in build-2.4.2 vs lib/build/task.rb in build-2.4.3

- old
+ new

@@ -19,11 +19,11 @@ # THE SOFTWARE. require 'fileutils' require 'build/graph' -require 'console/shell' +require 'console/event/spawn' module Build # This task class serves as the base class for the environment specific task classes genearted when adding targets. class Task < Graph::Task class CommandFailure < Graph::TransientError @@ -53,19 +53,23 @@ @group = group @logger = logger end + def to_s + "\#<#{Task} #{node.name}>" + end + attr :group attr :logger def wet? @node.dirty? end def spawn(*arguments) if wet? - @logger&.info(self) {Console::Shell.for(*arguments)} + @logger&.info(self) {Console::Event::Spawn.for(*arguments)} status = @group.spawn(*arguments) if status != 0 raise CommandFailure.new(self, arguments, status) end