diff options
author | Valery Sizov <valery@gitlab.com> | 2014-11-28 14:06:14 -0500 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2014-12-01 06:23:38 -0500 |
commit | 7b45b052b292099cf6e519749bf8f241c74c0b70 (patch) | |
tree | 2588fc936746dfcc45a609445a1f4606985647bd /lib/api | |
parent | 98b270ff404edcd840911b2ec3353d8701f6cf93 (diff) | |
download | gitlab-ci-7b45b052b292099cf6e519749bf8f241c74c0b70.tar.gz |
remove script field from project
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 | ||||
-rw-r--r-- | lib/api/projects.rb | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 9f4ea7f..0748442 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -17,7 +17,7 @@ module API end class Project < Grape::Entity - expose :id, :name, :timeout, :scripts, :token, :default_ref, :gitlab_url, :always_build, :polling_interval, :public, :ssh_url_to_repo, :gitlab_id + expose :id, :name, :timeout, :token, :default_ref, :gitlab_url, :always_build, :polling_interval, :public, :ssh_url_to_repo, :gitlab_id end class RunnerProject < Grape::Entity diff --git a/lib/api/projects.rb b/lib/api/projects.rb index d6cd689..89faa04 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -55,7 +55,6 @@ module API # gitlab_id (required) - The gitlab id of the project # gitlab_url (required) - The gitlab web url to the project # ssh_url_to_repo (required) - The gitlab ssh url to the repo - # scripts - The shell script provided for a runner to run # default_ref - The branch to run against (defaults to `master`) # Example Request: # POST /projects @@ -66,7 +65,6 @@ module API :name => params[:name], :gitlab_id => params[:gitlab_id], :gitlab_url => params[:gitlab_url], - :scripts => params[:scripts] || 'ls -al', :default_ref => params[:default_ref] || 'master', :ssh_url_to_repo => params[:ssh_url_to_repo] } @@ -90,7 +88,6 @@ module API # gitlab_id - The gitlab id of the project # gitlab_url - The gitlab web url to the project # ssh_url_to_repo - The gitlab ssh url to the repo - # scripts - The shell script provided for a runner to run # default_ref - The branch to run against (defaults to `master`) # Example Request: # PUT /projects/:id @@ -98,7 +95,7 @@ module API project = Project.find(params[:id]) if project.present? && current_user.can_access_project?(project.gitlab_id) - attrs = attributes_for_keys [:name, :gitlab_id, :gitlab_url, :scripts, :default_ref, :ssh_url_to_repo] + attrs = attributes_for_keys [:name, :gitlab_id, :gitlab_url, :default_ref, :ssh_url_to_repo] if project.update_attributes(attrs) present project, :with => Entities::Project |