Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build_artifact_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dde17aa68b84426d0c5e9fb4b979a127ae859fef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class BuildArtifactEntity < Grape::Entity
  include RequestAwareEntity

  expose :name do |build|
    build.name
  end

  expose :path do |build|
    download_namespace_project_job_artifacts_path(
      build.project.namespace,
      build.project,
      build)
  end
end