Module: Homebrew::Bundle::WhalebrewDumper Private
- Defined in:
- bundle/whalebrew_dumper.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.
Class Method Summary collapse
- .dump ⇒ String private
- .images ⇒ Array<String, nil> private
- .reset! ⇒ void private
Class Method Details
.dump ⇒ String
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.
27 28 29 |
# File 'bundle/whalebrew_dumper.rb', line 27 def self.dump images.map { |image| "whalebrew \"#{image}\"" }.join("\n") end |
.images ⇒ Array<String, nil>
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.
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'bundle/whalebrew_dumper.rb', line 13 def self.images return [] unless Bundle.whalebrew_installed? odeprecated "`brew bundle` `whalebrew` support", "using `whalebrew` directly" @images ||= T.let( `whalebrew list 2>/dev/null`.split("\n") .reject { |line| line.start_with?("COMMAND ") } .filter_map { |line| line.split(/\s+/).last } .uniq, T.nilable(T::Array[String]), ) end |
.reset! ⇒ void
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.
This method returns an undefined value.
8 9 10 |
# File 'bundle/whalebrew_dumper.rb', line 8 def self.reset! @images = T.let(nil, T.nilable(T::Array[String])) end |