Class: Ci::JobArtifactsFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/ci/job_artifacts_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(project, params = {}) ⇒ JobArtifactsFinder

Returns a new instance of JobArtifactsFinder.


5
6
7
8
# File 'app/finders/ci/job_artifacts_finder.rb', line 5

def initialize(project, params = {})
  @project = project
  @params = params
end

Instance Method Details

#executeObject


10
11
12
13
14
# File 'app/finders/ci/job_artifacts_finder.rb', line 10

def execute
  artifacts = @project.job_artifacts

  sort(artifacts)
end