Class: Git::Lint::CLI::Actions::Analyze::Branch

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/git/lint/cli/actions/analyze/branch.rb

Overview

Handles analyze action for branch.

Instance Method Summary collapse

Constructor Details

#initialize(analyzer: Analyzer.new, loader: Git::Lint::Commits::Loader.new) ⇒ Branch

Returns a new instance of Branch.



18
19
20
21
22
# File 'lib/git/lint/cli/actions/analyze/branch.rb', line 18

def initialize(analyzer: Analyzer.new, loader: Git::Lint::Commits::Loader.new, **)
  super(**)
  @analyzer = analyzer
  @loader = loader
end

Instance Method Details

#callObject



24
25
26
27
28
# File 'lib/git/lint/cli/actions/analyze/branch.rb', line 24

def call(*)
  report
rescue Errors::Base => error
  logger.abort error.message
end