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:) ⇒ 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.

Parameters:

  • extension (String)
  • no_upgrade (Boolean)

Returns:



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

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.

Parameters:

  • extension (String)
  • no_upgrade (Boolean) (defaults to: false)

Returns:

  • (Boolean)


17
18
19
20
# File 'bundle/vscode_extension_checker.rb', line 17

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