Class: RubocopPr::EnvironmentChecker
- Inherits:
-
Object
- Object
- RubocopPr::EnvironmentChecker
- 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, ) checks.each { |c| c.call } repository.checks.each { |c| c.call } end |
.checks ⇒ Object
6 7 8 |
# File 'lib/rubocop_pr/environment_checker.rb', line 6 def self.checks @checks ||= [GitStatus] end |