diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-04 12:55:23 +0100 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-11 18:02:09 +0100 |
| commit | e80e3f5372d6bcad1fbe04a85b3086bb66794828 (patch) | |
| tree | 16b1539cfd158ecac7fe05d595cbba30b8bc1a04 /lib/ci/api/runners.rb | |
| parent | 8b4cdc50fca816b4f56f8579e17c4dba836ec797 (diff) | |
| download | gitlab-ce-e80e3f5372d6bcad1fbe04a85b3086bb66794828.tar.gz | |
Migrate CI::Project to Project
Diffstat (limited to 'lib/ci/api/runners.rb')
| -rw-r--r-- | lib/ci/api/runners.rb | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/ci/api/runners.rb b/lib/ci/api/runners.rb index 1466fe4356e..dd77bd65863 100644 --- a/lib/ci/api/runners.rb +++ b/lib/ci/api/runners.rb @@ -3,17 +3,6 @@ module Ci # Runners API class Runners < Grape::API resource :runners do - # Get list of all available runners - # - # Example Request: - # GET /runners - get do - authenticate! - runners = Ci::Runner.all - - present runners, with: Entities::Runner - end - # Delete runner # Parameters: # token (required) - The unique token of runner @@ -47,9 +36,9 @@ module Ci tag_list: params[:tag_list], is_shared: true ) - elsif project = Ci::Project.find_by(token: params[:token]) + elsif project = Project.find_by(token: params[:token]) # Create a specific runner for project. - project.runners.create( + project.ci_runners.create( description: params[:description], tag_list: params[:tag_list] ) |
