Class: Homebrew::Bundle::Checker::VscodeExtensionChecker Private

Inherits:
Base
  • Object
show all
Defined in:
bundle/vscode_extension_checker.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Constant Summary collapse

PACKAGE_TYPE =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

:vscode
PACKAGE_TYPE_NAME =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

"VSCode Extension"

Instance Method Summary collapse

Methods inherited from Base

#checkable_entries, #exit_early_check, #find_actionable, #format_checkable, #full_check

Instance Method Details

#failure_reason(extension, no_upgrade:) ⇒ Object

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.



11
12
13
# File 'bundle/vscode_extension_checker.rb', line 11

def failure_reason(extension, no_upgrade:)
  "#{PACKAGE_TYPE_NAME} #{extension} needs to be installed."
end

#installed_and_up_to_date?(extension, no_upgrade: 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.

Returns:

  • (Boolean)


15
16
17
18
# File 'bundle/vscode_extension_checker.rb', line 15

def installed_and_up_to_date?(extension, no_upgrade: false)
  require "bundle/vscode_extension_installer"
  Homebrew::Bundle::VscodeExtensionInstaller.extension_installed?(extension)
end