Class: RubocopPr::EnvironmentChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop_pr/environment_checker.rb

Overview

Service class, which only goal is to check that the system is suitable to run the script.

Defined Under Namespace

Modules: GitStatus

Class Method Summary collapse

Class Method Details

.call(repository, options) ⇒ Object



10
11
12
13
# File 'lib/rubocop_pr/environment_checker.rb', line 10

def self.call(repository, options)
  checks.each { |c| c.call options }
  repository.checks.each { |c| c.call options }
end

.checksObject



6
7
8
# File 'lib/rubocop_pr/environment_checker.rb', line 6

def self.checks
  @checks ||= [GitStatus]
end