summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-14 13:57:09 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-14 13:57:09 +0100
commit990765edf354a7bbb39d3897780fb85bf8d6fa48 (patch)
treec01cc17db3ab7173ddef60b93f5115db25a46871 /app/services
parentd945300b8e49c927da8a12ba3a8bac68dbc4b9fc (diff)
downloadgitlab-ce-990765edf354a7bbb39d3897780fb85bf8d6fa48.tar.gz
Improve name of service that stops CI environments
Diffstat (limited to 'app/services')
-rw-r--r--app/services/after_branch_delete_service.rb2
-rw-r--r--app/services/ci/stop_environments_service.rb (renamed from app/services/ci/stop_environment_service.rb)2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/after_branch_delete_service.rb b/app/services/after_branch_delete_service.rb
index c157cb68715..2be4d3e6ab5 100644
--- a/app/services/after_branch_delete_service.rb
+++ b/app/services/after_branch_delete_service.rb
@@ -16,7 +16,7 @@ class AfterBranchDeleteService < BaseService
private
def stop_environments
- Ci::StopEnvironmentService
+ Ci::StopEnvironmentsService
.new(project, current_user)
.execute(branch_name)
end
diff --git a/app/services/ci/stop_environment_service.rb b/app/services/ci/stop_environments_service.rb
index 79a0b1369c9..b7a49a424ce 100644
--- a/app/services/ci/stop_environment_service.rb
+++ b/app/services/ci/stop_environments_service.rb
@@ -1,5 +1,5 @@
module Ci
- class StopEnvironmentService < BaseService
+ class StopEnvironmentsService < BaseService
attr_reader :ref
def execute(branch_name)