Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
abdb4d1b
Commit
abdb4d1b
authored
May 06, 2019
by
Samuel GAIST
Committed by
Flavio TARSETTI
May 06, 2019
Browse files
[toolchain] Set asset_type and asset_folder class information
parent
457a1a1d
Pipeline
#29916
passed with stage
in 24 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/toolchain.py
View file @
abdb4d1b
...
...
@@ -62,6 +62,9 @@ class Storage(utils.Storage):
``<user>/<name>/<version>``.
"""
asset_type
=
"toolchain"
asset_folder
=
"toolchains"
def
__init__
(
self
,
prefix
,
name
):
if
name
.
count
(
"/"
)
!=
2
:
...
...
@@ -71,7 +74,9 @@ class Storage(utils.Storage):
self
.
fullname
=
name
self
.
prefix
=
prefix
path
=
utils
.
hashed_or_simple
(
self
.
prefix
,
"toolchains"
,
name
,
suffix
=
".json"
)
path
=
utils
.
hashed_or_simple
(
self
.
prefix
,
self
.
asset_folder
,
name
,
suffix
=
".json"
)
path
=
path
[:
-
5
]
super
(
Storage
,
self
).
__init__
(
path
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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