Automatically detects and loads host.
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