Module: EndOfLife::Scanner

Extended by:
Scanner
Includes:
Helpers::Terminal
Included in:
Scanner
Defined in:
lib/end_of_life/scanner.rb

Instance Method Summary collapse

Instance Method Details

#scan(options) ⇒ Object



6
7
8
9
10
11
# File 'lib/end_of_life/scanner.rb', line 6

def scan(options)
  fetch_repositories(options)
    .fmap { |repositories| filter_repositories_with_eol_products(repositories, **options.slice(:product, :max_eol_date)) }
    .fmap { |repositories| output_report(repositories, **options.slice(:product, :max_eol_date)) }
    .or { |error| abort "\n#{error_msg(error)}" }
end