Class: Packages::Helm::PackageFilesFinder
- Inherits:
-
Object
- Object
- Packages::Helm::PackageFilesFinder
- Defined in:
- app/finders/packages/helm/package_files_finder.rb
Constant Summary collapse
- DEFAULT_PACKAGE_FILES_COUNT =
20
- MAX_PACKAGE_FILES_COUNT =
1000
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project, channel, params = {}) ⇒ PackageFilesFinder
constructor
A new instance of PackageFilesFinder.
Constructor Details
#initialize(project, channel, params = {}) ⇒ PackageFilesFinder
Returns a new instance of PackageFilesFinder.
11 12 13 14 15 |
# File 'app/finders/packages/helm/package_files_finder.rb', line 11 def initialize(project, channel, params = {}) @project = project @channel = channel @params = params end |
Instance Method Details
#execute ⇒ Object
17 18 19 20 21 |
# File 'app/finders/packages/helm/package_files_finder.rb', line 17 def execute package_files = Packages::PackageFile.for_helm_with_channel(@project, @channel) .limit_recent(limit) by_file_name(package_files) end |