Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-shell
Commits
459e4482
Commit
459e4482
authored
Mar 09, 2016
by
Pablo Carranza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change API endpoint to authorized_keys
parent
c9fac154
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
lib/gitlab_net.rb
lib/gitlab_net.rb
+1
-1
spec/vcr_cassettes/ssh-key-not-implemented.yml
spec/vcr_cassettes/ssh-key-not-implemented.yml
+1
-1
spec/vcr_cassettes/ssh-key-ok.yml
spec/vcr_cassettes/ssh-key-ok.yml
+1
-1
No files found.
lib/gitlab_net.rb
View file @
459e4482
...
...
@@ -57,7 +57,7 @@ class GitlabNet
end
def
authorized_key
(
fingerprint
)
resp
=
get
(
"
#{
host
}
/
ssh-key
?fingerprint=
#{
fingerprint
}
"
)
resp
=
get
(
"
#{
host
}
/
authorized_keys
?fingerprint=
#{
fingerprint
}
"
)
JSON
.
parse
(
resp
.
body
)
if
resp
.
code
==
"200"
rescue
nil
...
...
spec/vcr_cassettes/ssh-key-not-implemented.yml
View file @
459e4482
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
get
uri
:
https://dev.gitlab.org/api/v3/internal/
ssh-key
?fingerprint=whatever
uri
:
https://dev.gitlab.org/api/v3/internal/
authorized_keys
?fingerprint=whatever
body
:
encoding
:
US-ASCII
string
:
secret_token=a123
...
...
spec/vcr_cassettes/ssh-key-ok.yml
View file @
459e4482
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
get
uri
:
https://dev.gitlab.org/api/v3/internal/
ssh-key
?fingerprint=42:18:16
uri
:
https://dev.gitlab.org/api/v3/internal/
authorized_keys
?fingerprint=42:18:16
body
:
encoding
:
US-ASCII
string
:
secret_token=a123
...
...
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