Class: Bibliothecary::Runner::MultiManifestFilter::FileAnalysis

Inherits:
Object
  • Object
show all
Defined in:
lib/bibliothecary/runner/multi_manifest_filter.rb

Overview

Wrap up a file analysis for easier validity testing

Instance Method Summary collapse

Constructor Details

#initialize(file_analysis) ⇒ FileAnalysis

Returns a new instance of FileAnalysis.



6
7
8
# File 'lib/bibliothecary/runner/multi_manifest_filter.rb', line 6

def initialize(file_analysis)
  @file_analysis = file_analysis
end

Instance Method Details

#skip?Boolean

Determine if we should skip this file analysis when processing

Returns:

  • (Boolean)

    True if we should skip processing



12
13
14
15
16
# File 'lib/bibliothecary/runner/multi_manifest_filter.rb', line 12

def skip?
  !@file_analysis ||
  !@file_analysis[:dependencies] ||
  @file_analysis[:dependencies].empty?
end