Sha256: 444873b47144a00a85b2c41f39fd983270e6bf759e6993d60c77cdb98b9866b2

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

require 'preek'

module Guard
  class Preek
    class Runner
      def initialize(files, report_type)
        @files = Array(files)
        @report_type = report_type
      end

      def perform
        ::Preek::Examiner.new(@files, excludes, reporter: reporter).perform
      end

    private
      def excludes
        %w(IrresponsibleModule)
      end

      def reporter
        if @report_type == :verbose
          ::Preek::VerboseReport
        else
          ::Preek::QuietReport
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
guard-preek-0.0.9 lib/guard/preek/runner.rb
guard-preek-0.0.8 lib/guard/preek/runner.rb
guard-preek-0.0.7 lib/guard/preek/runner.rb
guard-preek-0.0.6 lib/guard/preek/runner.rb
guard-preek-0.0.5 lib/guard/preek/runner.rb