summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2014-11-28 14:06:14 -0500
committerValery Sizov <valery@gitlab.com>2014-12-01 06:23:38 -0500
commit7b45b052b292099cf6e519749bf8f241c74c0b70 (patch)
tree2588fc936746dfcc45a609445a1f4606985647bd /lib/api/projects.rb
parent98b270ff404edcd840911b2ec3353d8701f6cf93 (diff)
downloadgitlab-ci-7b45b052b292099cf6e519749bf8f241c74c0b70.tar.gz
remove script field from project
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb5
1 files changed, 1 insertions, 4 deletions
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