Sha256: 53ff9c2774dd44bed2110990b433f78f5d4e1c99b09f70cebd40fa1f199df149

Contents?: true

Size: 405 Bytes

Versions: 6

Compression:

Stored size: 405 Bytes

Contents

require_relative './base'

module Npmdc
  module Formatters
    class Progress < Base
      def dep_output(_dep, status)
        case status
        when :success
          @output.print color_message(".", status)
        when :failure
          @output.print color_message("F", status)
        end
      end

      def check_finish_output
        2.times { @output.puts "\n" }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
npmdc-0.3.2 lib/npmdc/formatters/progress.rb
npmdc-0.3.1 lib/npmdc/formatters/progress.rb
npmdc-0.3.0 lib/npmdc/formatters/progress.rb
npmdc-0.2.5 lib/npmdc/formatters/progress.rb
npmdc-0.2.4 lib/npmdc/formatters/progress.rb
npmdc-0.2.3 lib/npmdc/formatters/progress.rb