debian-mirror-gitlab/lib/gitlab/dependency_linker/package.rb

20 lines
360 B
Ruby
Raw Normal View History

2019-03-13 22:55:13 +05:30
# frozen_string_literal: true
module Gitlab
module DependencyLinker
class Package
attr_reader :name, :git_ref, :github_ref
def initialize(name, git_ref, github_ref)
@name = name
@git_ref = git_ref
@github_ref = github_ref
end
def external_ref
@git_ref || @github_ref
end
end
end
end