class CompareLinker::LockfileFetcher
Public Instance Methods
fetch(repo_full_name, ref)
click to toggle source
# File lib/jenkins/bundle/update/pr.rb, line 53 def fetch(repo_full_name, ref) lockfile_content = begin octokit.contents(repo_full_name, path: 'config/Gemfile.lock', ref: ref) rescue Octokit::NotFound octokit.contents(repo_full_name, path: 'Gemfile.lock', ref: ref) end Bundler::LockfileParser.new( Base64.decode64( octokit.blob(repo_full_name, lockfile_content.sha).content ) ) end