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) ⇒ Branch

Returns a new instance of Branch.



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

def initialize(analyzer: Analyzer.new, **)
  super(**)
  @analyzer = analyzer
end

Instance Method Details

#callObject



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

def call(*)
  parse
rescue Errors::Base => error
  logger.error { error.message }
  kernel.abort
end