Module: Dependabot::Sbt::NativeHelpers
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/sbt/native_helpers.rb
Class Method Summary collapse
Class Method Details
.clean_path(path) ⇒ Object
23 24 25 |
# File 'lib/dependabot/sbt/native_helpers.rb', line 23 def self.clean_path(path) Pathname.new(path).cleanpath.to_path end |
.coursier_path ⇒ Object
12 13 14 |
# File 'lib/dependabot/sbt/native_helpers.rb', line 12 def self.coursier_path clean_path(File.join(native_helpers_root, "sbt/bin/cs")) end |
.native_helpers_root ⇒ Object
17 18 19 20 |
# File 'lib/dependabot/sbt/native_helpers.rb', line 17 def self.native_helpers_root default_path = File.join(__dir__, "../../../helpers/install-dir") ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", default_path) end |