Sha256: 636c4b52a0736a4992ad3e491fcfcc54c6f4d8bdc79302c286fd72a78e628435

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

require_relative 'console_outputter'

module Inferno
  module CLI
    class Execute
      # @private
      class PlainOutputter < ConsoleOutputter
        def print_error(_options, exception)
          puts "Error: #{exception.full_message(highlight: false)}"
        end

        def color
          @color ||= Pastel.new(enabled: false)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/apps/cli/execute/plain_outputter.rb
inferno_core-0.6.0 lib/inferno/apps/cli/execute/plain_outputter.rb
inferno_core-0.5.4 lib/inferno/apps/cli/execute/plain_outputter.rb
inferno_core-0.5.3 lib/inferno/apps/cli/execute/plain_outputter.rb
inferno_core-0.5.2 lib/inferno/apps/cli/execute/plain_outputter.rb
inferno_core-0.5.1 lib/inferno/apps/cli/execute/plain_outputter.rb