Module: OS::Mac::Bundle::Skipper::ClassMethods Private
- Defined in:
- extend/os/mac/bundle/skipper.rb
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
Instance Method Details
#linux_only_entry?(entry) ⇒ Boolean
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
10 11 12 |
# File 'extend/os/mac/bundle/skipper.rb', line 10 def linux_only_entry?(entry) entry.type == :flatpak end |
#skip?(entry, silent: false) ⇒ Boolean
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'extend/os/mac/bundle/skipper.rb', line 15 def skip?(entry, silent: false) if entry.type == :winget Kernel.puts Formatter.warning "Skipping #{entry.type} #{entry.name} (requires WSL)" unless silent true elsif linux_only_entry?(entry) unless silent Kernel.puts Formatter.warning "Skipping #{entry.type} #{entry.name} (unsupported on macOS)" end true else super end end |