16 lines
353 B
Ruby
16 lines
353 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
module Homebrew
|
|
module CleanupMac
|
|
sig { returns(T::Boolean) }
|
|
def use_system_ruby?
|
|
return false if Homebrew::EnvConfig.force_vendor_ruby?
|
|
|
|
Homebrew::EnvConfig.developer? && ENV["HOMEBREW_USE_RUBY_FROM_PATH"].present?
|
|
end
|
|
end
|
|
end
|
|
|
|
Homebrew::Cleanup.prepend(Homebrew::CleanupMac)
|