Class: BooticCli::Themes::MissingItemsTheme
- Inherits:
-
Object
- Object
- BooticCli::Themes::MissingItemsTheme
- Defined in:
- lib/bootic_cli/themes/missing_items_theme.rb
Instance Method Summary collapse
- #any? ⇒ Boolean
- #assets ⇒ Object
- #count ⇒ Object
-
#initialize(source:, target:) ⇒ MissingItemsTheme
constructor
A new instance of MissingItemsTheme.
- #templates ⇒ Object
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
8 9 10 |
# File 'lib/bootic_cli/themes/missing_items_theme.rb', line 8 def any? templates.any? || assets.any? end |
#assets ⇒ Object
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 |
#count ⇒ Object
12 13 14 |
# File 'lib/bootic_cli/themes/missing_items_theme.rb', line 12 def count templates.count + assets.count end |
#templates ⇒ Object
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 |