2021-01-03 14:25:43 +05:30
|
|
|
# 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
|
2021-06-08 01:23:25 +05:30
|
|
|
.installable
|
2021-01-03 14:25:43 +05:30
|
|
|
.by_name_and_version!(package_name, package_version)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
attr_reader :project
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|