24 lines
486 B
Ruby
Raw Normal View History

2020-10-10 14:16:11 +02:00
# typed: strict
2019-11-22 09:08:31 +00:00
# frozen_string_literal: true
module Utils
module Analytics
class << self
2020-10-28 18:49:10 +11:00
extend T::Sig
sig { returns(String) }
2019-11-22 09:08:31 +00:00
def formula_path
2020-04-05 15:44:50 +01:00
return generic_formula_path if Homebrew::EnvConfig.force_homebrew_on_linux?
2019-11-22 09:08:31 +00:00
"formula-linux"
end
2020-10-28 18:49:10 +11:00
sig { returns(String) }
2019-11-22 09:08:31 +00:00
def analytics_path
2020-04-05 15:44:50 +01:00
return generic_analytics_path if Homebrew::EnvConfig.force_homebrew_on_linux?
2019-11-22 09:08:31 +00:00
"analytics-linux"
end
end
end
end