Class: BooticCli::Themes::MissingItemsTheme

Inherits:
Object
  • Object
show all
Defined in:
lib/bootic_cli/themes/missing_items_theme.rb

Instance Method Summary collapse

Constructor Details

#initialize(source:, target:) ⇒ MissingItemsTheme

Returns a new instance of MissingItemsTheme.



4
5
6
# File 'lib/bootic_cli/themes/missing_items_theme.rb', line 4

def initialize(source:, target:)
  @source, @target = source, target
end

Instance Method Details

#any?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/bootic_cli/themes/missing_items_theme.rb', line 8

def any?
  templates.any? || assets.any?
end

#assetsObject



20
21
22
# File 'lib/bootic_cli/themes/missing_items_theme.rb', line 20

def assets
  @assets ||= find_missing_files(source.assets, target.assets)
end

#countObject



12
13
14
# File 'lib/bootic_cli/themes/missing_items_theme.rb', line 12

def count
  templates.count + assets.count
end

#templatesObject



16
17
18
# File 'lib/bootic_cli/themes/missing_items_theme.rb', line 16

def templates
  @templates ||= find_missing_files(source.templates, target.templates)
end