Module: Dependabot::Utils::Go::SharedHelper
- Defined in:
- lib/dependabot/utils/go/shared_helper.rb
Class Method Summary collapse
Class Method Details
.path ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dependabot/utils/go/shared_helper.rb', line 7 def self.path project_root = File.join(File.dirname(__FILE__), "../../../..") platform = case RbConfig::CONFIG["arch"] when /linux/ then "linux" when /darwin/ then "darwin" else raise "Invalid platform #{RbConfig::CONFIG['arch']}" end File.join(project_root, "helpers/go/go-helpers.#{platform}64") end |