18 lines
375 B
Ruby
Raw Permalink Normal View History

2024-08-15 08:18:31 -07:00
# typed: strict
2022-11-20 10:49:53 -08:00
# frozen_string_literal: true
2024-09-18 15:33:49 -07:00
module OS
module Mac
module Cleanup
sig { returns(T::Boolean) }
def use_system_ruby?
return false if Homebrew::EnvConfig.force_vendor_ruby?
2022-11-20 10:49:53 -08:00
::Homebrew::EnvConfig.developer? && ENV["HOMEBREW_USE_RUBY_FROM_PATH"].present?
2024-09-13 12:22:52 -07:00
end
2022-11-20 10:49:53 -08:00
end
end
end
2024-09-05 19:56:32 -07:00
2024-09-18 15:33:49 -07:00
Homebrew::Cleanup.prepend(OS::Mac::Cleanup)