Sha256: e2f5288892b0df467d46ff8e68f89b3f0ce09363fee6f468a83037009eacb71a

Contents?: true

Size: 551 Bytes

Versions: 8

Compression:

Stored size: 551 Bytes

Contents

class Onceover
  module CodeQuality
    module Formatter

      START_TEST = "Checking".freeze
      MSG_TEST_OK = "...OK".freeze


      def self.start_test(test_name)
        logger.info "Checking #{test_name}..."
      end

      def self.end_test(output, ok, show_output=false)
        if !ok || show_output
          output.each_line do |line|
            logger.info("\t#{line.chomp}")
          end
        end

        if ok
          logger.info "...OK"
        else
          logger.error "...FAILED"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
onceover-codequality-0.12.0 lib/onceover/codequality/formatter.rb
onceover-codequality-0.11.0 lib/onceover/codequality/formatter.rb
onceover-codequality-0.10.0 lib/onceover/codequality/formatter.rb
onceover-codequality-0.9.0 lib/onceover/codequality/formatter.rb
onceover-codequality-0.8.0 lib/onceover/codequality/formatter.rb
onceover-codequality-0.7.2 lib/onceover/codequality/formatter.rb
onceover-codequality-0.7.1 lib/onceover/codequality/formatter.rb
onceover-codequality-0.6.0 lib/onceover/codequality/formatter.rb