Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
239f9e7b
authored
Feb 25, 2021
by
Máhonfai Bálint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SSH download to store api and add path to SSH upload as well
parent
e6d6cc46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
circle/dashboard/store_api.py
+6
-2
No files found.
circle/dashboard/store_api.py
View file @
239f9e7b
...
...
@@ -127,8 +127,12 @@ class Store(object):
r
=
self
.
_request_cmd
(
"UPLOAD"
,
PATH
=
path
)
return
r
.
json
()[
'LINK'
]
def
request_ssh_upload
(
self
):
r
=
self
.
_request_cmd
(
"SSH_UPLOAD"
)
def
request_ssh_download
(
self
,
path
):
r
=
self
.
_request_cmd
(
"SSH_DOWNLOAD"
,
PATH
=
path
)
return
r
.
json
()[
'LINK'
],
r
.
json
()[
'PORT'
]
def
request_ssh_upload
(
self
,
path
):
r
=
self
.
_request_cmd
(
"SSH_UPLOAD"
,
PATH
=
path
)
return
r
.
json
()[
'LINK'
],
r
.
json
()[
'PORT'
]
def
ssh_upload_finished
(
self
,
file_name
,
new_name
):
...
...
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