method

jobs_status

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: Runner
jobs_status() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/test/unit.rb, line 350
      def jobs_status
        return unless @options[:job_status]
        puts "" unless @options[:verbose]
        status_line = @workers.map(&:to_s).join(" ")
        if @options[:job_status] == :replace and $stdout.tty?
          @terminal_width ||=
            begin
              require 'io/console'
              $stdout.winsize[1]
            rescue LoadError, NoMethodError
              ENV["COLUMNS"].to_i.nonzero? || 80
            end
          @jstr_size ||= 0
          del_jobs_status
          $stdout.flush
          print status_line[0...@terminal_width]
          $stdout.flush
          @jstr_size = [status_line.size, @terminal_width].min
        else
          puts status_line
        end
      end
Register or log in to add new notes.