debian-mirror-gitlab/app/finders/packages/package_finder.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
372 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module Packages
class PackageFinder
def initialize(project, package_id)
@project = project
@package_id = package_id
end
def execute
@project
.packages
2021-12-11 22:18:48 +05:30
.preload_pipelines
2020-11-24 15:15:51 +05:30
.including_project_route
.including_tags
2021-06-08 01:23:25 +05:30
.displayable
2020-07-28 23:09:34 +05:30
.find(@package_id)
end
end
end