BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
after_branch_delete_service.rb
app/services/after_branch_delete_service.rb
+1
-1
stop_environments_service.rb
app/services/ci/stop_environments_service.rb
+1
-1
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