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

17 lines
286 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
.processed
.find(@package_id)
end
end
end