Class: Packages::PackageFileFinder

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

Direct Known Subclasses

Conan::PackageFileFinder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package, file_name, params = {}) ⇒ PackageFileFinder

Returns a new instance of PackageFileFinder.


5
6
7
8
9
# File 'app/finders/packages/package_file_finder.rb', line 5

def initialize(package, file_name, params = {})
  @package = package
  @file_name = file_name
  @params = params
end

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name.


3
4
5
# File 'app/finders/packages/package_file_finder.rb', line 3

def file_name
  @file_name
end

#packageObject (readonly)

Returns the value of attribute package.


3
4
5
# File 'app/finders/packages/package_file_finder.rb', line 3

def package
  @package
end

#paramsObject (readonly)

Returns the value of attribute params.


3
4
5
# File 'app/finders/packages/package_file_finder.rb', line 3

def params
  @params
end

Instance Method Details

#executeObject


11
12
13
# File 'app/finders/packages/package_file_finder.rb', line 11

def execute
  package_files.last
end

#execute!Object


15
16
17
# File 'app/finders/packages/package_file_finder.rb', line 15

def execute!
  package_files.last!
end