diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-06 12:25:34 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-06 12:25:34 +0300 |
commit | 436d0c2d8102e2831b64e0cd43c375fada869a0e (patch) | |
tree | b81e706b41b8abf8ca3aba9cddb7f0b803596bb7 /lib/api | |
parent | c010c8a92cecc6d85661fdb9b989787020d27f11 (diff) | |
download | gitlab-ci-436d0c2d8102e2831b64e0cd43c375fada869a0e.tar.gz |
Remove public key from runner model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/runners.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb index 2df6d6a..ef78b09 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -24,15 +24,14 @@ module API # # Parameters: # token (required) - The unique token of runner - # public_key (required) - Deploy key used to get projects # # Example Request: # POST /runners/register post "register" do authenticate_runners! - required_attributes! [:token, :public_key] + required_attributes! [:token] - runner = Runner.create(public_key: params[:public_key]) + runner = Runner.create if runner.id present runner, with: Entities::Runner |