Module: Dependabot::NpmAndYarn::NativeHelpers
- Defined in:
- lib/dependabot/npm_and_yarn/native_helpers.rb
Class Method Summary collapse
Class Method Details
.helper_path ⇒ Object
6 7 8 |
# File 'lib/dependabot/npm_and_yarn/native_helpers.rb', line 6 def self.helper_path "node #{File.join(native_helpers_root, 'run.js')}" end |
.native_helpers_root ⇒ Object
10 11 12 13 14 15 |
# File 'lib/dependabot/npm_and_yarn/native_helpers.rb', line 10 def self.native_helpers_root helpers_root = ENV["DEPENDABOT_NATIVE_HELPERS_PATH"] return File.join(helpers_root, "npm_and_yarn") unless helpers_root.nil? File.join(__dir__, "../../../helpers") end |