Class: Packages::Generic::PackageFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/packages/generic/package_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ PackageFinder

Returns a new instance of PackageFinder.


6
7
8
# File 'app/finders/packages/generic/package_finder.rb', line 6

def initialize(project)
  @project = project
end

Instance Method Details

#execute!(package_name, package_version) ⇒ Object


10
11
12
13
14
15
16
# File 'app/finders/packages/generic/package_finder.rb', line 10

def execute!(package_name, package_version)
  project
    .packages
    .generic
    .installable
    .by_name_and_version!(package_name, package_version)
end