Module: Homebrew::Bundle::VscodeExtensionDumper Private
- Defined in:
 - bundle/vscode_extension_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
 - .extensions ⇒ Array<String> 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.
      25 26 27  | 
    
      # File 'bundle/vscode_extension_dumper.rb', line 25 def self.dump extensions.map { |name| "vscode \"#{name}\"" }.join("\n") end  | 
  
.extensions ⇒ Array<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.
      13 14 15 16 17 18 19 20 21 22  | 
    
      # File 'bundle/vscode_extension_dumper.rb', line 13 def self.extensions @extensions ||= T.let(nil, T.nilable(T::Array[String])) @extensions ||= if Bundle.vscode_installed? Bundle.exchange_uid_if_needed! do `"#{Bundle.which_vscode}" --list-extensions 2>/dev/null` end.split("\n").map(&:downcase) else [] end 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/vscode_extension_dumper.rb', line 8 def self.reset! @extensions = nil end  |