summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-21 14:51:53 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-21 14:52:25 +0100
commit02c7dcf6b2db4aca152b24a1997ceb6ec8b53e15 (patch)
tree89a8d65ce5cd50f3a93904865ffe81aaf88fd251 /app/serializers
parentd549a9655803a5e8b90849fd4e29a6805719af3e (diff)
downloadgitlab-ce-02c7dcf6b2db4aca152b24a1997ceb6ec8b53e15.tar.gz
Rename some pipeline and build related entities
[ci skip]
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/build_action_entity.rb (renamed from app/serializers/pipeline_action_entity.rb)2
-rw-r--r--app/serializers/build_artifact_entity.rb (renamed from app/serializers/pipeline_artifact_entity.rb)2
-rw-r--r--app/serializers/pipeline_entity.rb6
-rw-r--r--app/serializers/stage_entity.rb (renamed from app/serializers/pipeline_stage_entity.rb)2
4 files changed, 6 insertions, 6 deletions
diff --git a/app/serializers/pipeline_action_entity.rb b/app/serializers/build_action_entity.rb
index 8ed4091b139..3e72892d584 100644
--- a/app/serializers/pipeline_action_entity.rb
+++ b/app/serializers/build_action_entity.rb
@@ -1,4 +1,4 @@
-class PipelineActionEntity < Grape::Entity
+class BuildActionEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
diff --git a/app/serializers/pipeline_artifact_entity.rb b/app/serializers/build_artifact_entity.rb
index 96f90ff9042..8b643d8e783 100644
--- a/app/serializers/pipeline_artifact_entity.rb
+++ b/app/serializers/build_artifact_entity.rb
@@ -1,4 +1,4 @@
-class PipelineArtifactEntity < Grape::Entity
+class BuildArtifactEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
diff --git a/app/serializers/pipeline_entity.rb b/app/serializers/pipeline_entity.rb
index 42205476478..d04a4990cb0 100644
--- a/app/serializers/pipeline_entity.rb
+++ b/app/serializers/pipeline_entity.rb
@@ -20,9 +20,9 @@ class PipelineEntity < Grape::Entity
expose :duration
expose :finished_at
- expose :stages, using: PipelineStageEntity
- expose :artifacts, using: PipelineArtifactEntity
- expose :manual_actions, using: PipelineActionEntity
+ expose :stages, using: StageEntity
+ expose :artifacts, using: BuildArtifactEntity
+ expose :manual_actions, using: BuildActionEntity
end
expose :flags do
diff --git a/app/serializers/pipeline_stage_entity.rb b/app/serializers/stage_entity.rb
index 5ef39bafdc1..31116988320 100644
--- a/app/serializers/pipeline_stage_entity.rb
+++ b/app/serializers/stage_entity.rb
@@ -1,4 +1,4 @@
-class PipelineStageEntity < Grape::Entity
+class StageEntity < Grape::Entity
include RequestAwareEntity
expose :name