2025-03-18 17:38:37 +00:00
|
|
|
# typed: true # rubocop:todo Sorbet/StrictSigil
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2025-07-04 11:25:41 +01:00
|
|
|
require "bundle/formula_installer"
|
2025-03-24 21:55:47 +08:00
|
|
|
|
2025-03-18 17:38:37 +00:00
|
|
|
module Homebrew
|
|
|
|
module Bundle
|
|
|
|
module Checker
|
|
|
|
class BrewChecker < Homebrew::Bundle::Checker::Base
|
|
|
|
PACKAGE_TYPE = :brew
|
|
|
|
PACKAGE_TYPE_NAME = "Formula"
|
|
|
|
|
|
|
|
def installed_and_up_to_date?(formula, no_upgrade: false)
|
2025-07-04 11:25:41 +01:00
|
|
|
Homebrew::Bundle::FormulaInstaller.formula_installed_and_up_to_date?(formula, no_upgrade:)
|
2025-03-18 17:38:37 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|