diff options
author | dixpac <dino.onex@gmail.com> | 2017-02-14 16:33:50 +0100 |
---|---|---|
committer | dixpac <dino.onex@gmail.com> | 2017-02-14 16:43:35 +0100 |
commit | 613856face7f2ea58c229682a3acbba3e64be01b (patch) | |
tree | 8e40292c26331480e998fa5155ac0ba6eecee347 /lib | |
parent | f802ad370e625e7aa2f3023f73c24a8b6f009821 (diff) | |
download | gitlab-ce-613856face7f2ea58c229682a3acbba3e64be01b.tar.gz |
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')
-rw-r--r-- | lib/api/tags.rb | 4 |
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 |