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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordixpac <dino.onex@gmail.com>2017-02-14 18:33:50 +0300
committerdixpac <dino.onex@gmail.com>2017-02-14 18:43:35 +0300
commit613856face7f2ea58c229682a3acbba3e64be01b (patch)
tree8e40292c26331480e998fa5155ac0ba6eecee347 /lib/api/tags.rb
parentf802ad370e625e7aa2f3023f73c24a8b6f009821 (diff)
Move tag services to `Tags` namespace
CreateTagService and DeleteTagService where in root namespace, by following service code organization I moved them in Tags::CreateService and Tags::DestroyService
Diffstat (limited to 'lib/api/tags.rb')
-rw-r--r--lib/api/tags.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb
index 5b345db3a41..b6fd8f569a9 100644
--- a/lib/api/tags.rb
+++ b/lib/api/tags.rb
@@ -40,7 +40,7 @@ module API
post ':id/repository/tags' do
authorize_push_project
- result = CreateTagService.new(user_project, current_user).
+ result = ::Tags::CreateService.new(user_project, current_user).
execute(params[:tag_name], params[:ref], params[:message], params[:release_description])
if result[:status] == :success
@@ -59,7 +59,7 @@ module API
delete ":id/repository/tags/:tag_name", requirements: { tag_name: /.+/ } do
authorize_push_project
- result = DeleteTagService.new(user_project, current_user).
+ result = ::Tags::DestroyService.new(user_project, current_user).
execute(params[:tag_name])
if result[:status] == :success