mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
20 lines
493 B
Ruby
20 lines
493 B
Ruby
# typed: true # rubocop:todo Sorbet/StrictSigil
|
|
# frozen_string_literal: true
|
|
|
|
require "bundle/brew_installer"
|
|
|
|
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)
|
|
Homebrew::Bundle::BrewInstaller.formula_installed_and_up_to_date?(formula, no_upgrade:)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|