debian-mirror-gitlab/app/finders/packages/package_finder.rb
2020-11-24 15:15:51 +05:30

19 lines
373 B
Ruby

# frozen_string_literal: true
module Packages
class PackageFinder
def initialize(project, package_id)
@project = project
@package_id = package_id
end
def execute
@project
.packages
.including_build_info
.including_project_route
.including_tags
.processed
.find(@package_id)
end
end
end