Class: Git::Lint::Commits::Loader
- Inherits:
-
Object
- Object
- Git::Lint::Commits::Loader
- Defined in:
- lib/git/lint/commits/loader.rb
Overview
Automatically detects and loads host.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
21 22 23 24 25 26 |
# File 'lib/git/lint/commits/loader.rb', line 21 def call = "Invalid repository. Are you within a Git repository?" fail Errors::Base, unless git.exist? host.call end |