debian-mirror-gitlab/app/finders/packages/generic/package_finder.rb
2021-01-30 21:13:32 +05:30

22 lines
395 B
Ruby

# frozen_string_literal: true
module Packages
module Generic
class PackageFinder
def initialize(project)
@project = project
end
def execute!(package_name, package_version)
project
.packages
.generic
.by_name_and_version!(package_name, package_version)
end
private
attr_reader :project
end
end
end