diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-21 16:51:53 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-21 16:52:25 +0300 |
commit | 02c7dcf6b2db4aca152b24a1997ceb6ec8b53e15 (patch) | |
tree | 89a8d65ce5cd50f3a93904865ffe81aaf88fd251 | |
parent | d549a9655803a5e8b90849fd4e29a6805719af3e (diff) |
Rename some pipeline and build related entities
[ci skip]
-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.rb | 6 | ||||
-rw-r--r-- | app/serializers/stage_entity.rb (renamed from app/serializers/pipeline_stage_entity.rb) | 2 | ||||
-rw-r--r-- | spec/serializers/build_action_entity_spec.rb (renamed from spec/serializers/pipeline_action_entity_spec.rb) | 2 | ||||
-rw-r--r-- | spec/serializers/build_artifact_entity_spec.rb (renamed from spec/serializers/pipeline_artifact_entity_spec.rb) | 2 |
6 files changed, 8 insertions, 8 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 diff --git a/spec/serializers/pipeline_action_entity_spec.rb b/spec/serializers/build_action_entity_spec.rb index 77fd7d9936f..383704572b1 100644 --- a/spec/serializers/pipeline_action_entity_spec.rb +++ b/spec/serializers/build_action_entity_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe PipelineActionEntity do +describe BuildActionEntity do let(:build) { create(:ci_build, name: 'test_build') } let(:entity) do diff --git a/spec/serializers/pipeline_artifact_entity_spec.rb b/spec/serializers/build_artifact_entity_spec.rb index df8ae6d32ae..2fc60aa9de6 100644 --- a/spec/serializers/pipeline_artifact_entity_spec.rb +++ b/spec/serializers/build_artifact_entity_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe PipelineArtifactEntity do +describe BuildArtifactEntity do let(:build) { create(:ci_build, name: 'test:build') } let(:entity) do |