Sha256: b33a654f7467a98f7b4fbc6163e3bf3462443d120e79d7ed7959dc0afff956b5

Contents?: true

Size: 626 Bytes

Versions: 5

Compression:

Stored size: 626 Bytes

Contents

require "rubycritic/source_control_systems/base"
require "rubycritic/files_initializer"
require "rubycritic/analysers_runner"
require "rubycritic/revision_comparator"

module Rubycritic

  class Orchestrator
    def initialize
      @source_control_system = SourceControlSystem::Base.create
    end

    def critique(paths)
      analysed_files = FilesInitializer.init(paths)
      AnalysersRunner.new(analysed_files, @source_control_system).run
      if @source_control_system.has_revision?
        RevisionComparator.new(analysed_files, @source_control_system).set_statuses
      end
      analysed_files
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubycritic-1.0.2 lib/rubycritic/orchestrator.rb
rubycritic-1.0.1 lib/rubycritic/orchestrator.rb
rubycritic-1.0.0 lib/rubycritic/orchestrator.rb
rubycritic-0.0.16 lib/rubycritic/orchestrator.rb
rubycritic-0.0.15 lib/rubycritic/orchestrator.rb