Class: Git::Lint::Commits::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/git/lint/commits/loader.rb

Overview

Automatically detects and loads host.

Instance Method Summary collapse

Instance Method Details

#callObject



21
22
23
24
25
26
# File 'lib/git/lint/commits/loader.rb', line 21

def call
  message = "Invalid repository. Are you within a Git repository?"
  fail Errors::Base, message unless git.exist?

  host.call
end