Class: PreCommit::CiCheck
- Inherits:
-
Object
- Object
- PreCommit::CiCheck
- Defined in:
- lib/pre-commit/checks/ci_check.rb
Constant Summary collapse
- CI_TASK_NAME =
'pre_commit:ci'
Class Method Summary collapse
Class Method Details
.call(_) ⇒ Object
5 6 7 8 |
# File 'lib/pre-commit/checks/ci_check.rb', line 5 def self.call(_) return if system("rake #{CI_TASK_NAME} --silent") "your test suite has failed, for the full output run `#{CI_TASK_NAME}`" end |