lib/ztk/command.rb in ztk-1.5.2 vs lib/ztk/command.rb in ztk-1.5.3
- old
+ new
@@ -143,9 +143,11 @@
reader_writer_map[pipe].write(data) unless options.silence
direct_log(:warn) { data }
end
output += data
+
+ options.on_progress.nil? or options.on_progress.call
end
break if reader_writer_map.keys.all?{ |reader| reader.eof? }
end
end
rescue Timeout::Error => e