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
747a5c42
Commit
747a5c42
authored
Nov 20, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Rubocop override that is no longer necessary
parent
56e5a2a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
lib/api/runner.rb
lib/api/runner.rb
+0
-2
No files found.
lib/api/runner.rb
View file @
747a5c42
...
@@ -19,7 +19,6 @@ module API
...
@@ -19,7 +19,6 @@ module API
optional
:tag_list
,
type:
Array
[
String
],
desc:
%q(List of Runner's tags)
optional
:tag_list
,
type:
Array
[
String
],
desc:
%q(List of Runner's tags)
optional
:maximum_timeout
,
type:
Integer
,
desc:
'Maximum timeout set when this Runner will handle the job'
optional
:maximum_timeout
,
type:
Integer
,
desc:
'Maximum timeout set when this Runner will handle the job'
end
end
# rubocop: disable CodeReuse/ActiveRecord
post
'/'
do
post
'/'
do
attributes
=
attributes_for_keys
([
:description
,
:active
,
:locked
,
:run_untagged
,
:tag_list
,
:maximum_timeout
])
attributes
=
attributes_for_keys
([
:description
,
:active
,
:locked
,
:run_untagged
,
:tag_list
,
:maximum_timeout
])
.
merge
(
get_runner_details_from_request
)
.
merge
(
get_runner_details_from_request
)
...
@@ -46,7 +45,6 @@ module API
...
@@ -46,7 +45,6 @@ module API
render_validation_error!
(
runner
)
render_validation_error!
(
runner
)
end
end
end
end
# rubocop: enable CodeReuse/ActiveRecord
desc
'Deletes a registered Runner'
do
desc
'Deletes a registered Runner'
do
http_codes
[[
204
,
'Runner was deleted'
],
[
403
,
'Forbidden'
]]
http_codes
[[
204
,
'Runner was deleted'
],
[
403
,
'Forbidden'
]]
...
...
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