Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
990765ed
Commit
990765ed
authored
Nov 14, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve name of service that stops CI environments
parent
d945300b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/services/after_branch_delete_service.rb
app/services/after_branch_delete_service.rb
+1
-1
app/services/ci/stop_environments_service.rb
app/services/ci/stop_environments_service.rb
+1
-1
spec/services/ci/stop_environments_service_spec.rb
spec/services/ci/stop_environments_service_spec.rb
+1
-1
No files found.
app/services/after_branch_delete_service.rb
View file @
990765ed
...
...
@@ -16,7 +16,7 @@ class AfterBranchDeleteService < BaseService
private
def
stop_environments
Ci
::
StopEnvironmentService
Ci
::
StopEnvironment
s
Service
.
new
(
project
,
current_user
)
.
execute
(
branch_name
)
end
...
...
app/services/ci/stop_environment_service.rb
→
app/services/ci/stop_environment
s
_service.rb
View file @
990765ed
module
Ci
class
StopEnvironmentService
<
BaseService
class
StopEnvironment
s
Service
<
BaseService
attr_reader
:ref
def
execute
(
branch_name
)
...
...
spec/services/ci/stop_environment_service_spec.rb
→
spec/services/ci/stop_environment
s
_service_spec.rb
View file @
990765ed
require
'spec_helper'
describe
Ci
::
StopEnvironmentService
,
services:
true
do
describe
Ci
::
StopEnvironment
s
Service
,
services:
true
do
let
(
:project
)
{
create
(
:project
,
:private
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment