"
This commit is contained in:
parent
c60897e876
commit
617aa98ee1
3 changed files with 13 additions and 13 deletions
|
@ -6,13 +6,13 @@ import sys
|
|||
import cd
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
command, *arguments = sys.argv
|
||||
command = os.path.basename(command)
|
||||
if command == '__main__.py':
|
||||
if command == "__main__.py":
|
||||
cd.set_ssh(*arguments)
|
||||
cd.install_commands(__file__)
|
||||
else:
|
||||
command = command.replace('-', '_')
|
||||
command = command.replace("-", "_")
|
||||
function = getattr(cd, command)
|
||||
function(*arguments)
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
from os import path
|
||||
|
||||
BRANCH = [
|
||||
'GITHUB_REF_NAME',
|
||||
'CI_COMMIT_BRANCH',
|
||||
"GITHUB_REF_NAME",
|
||||
"CI_COMMIT_BRANCH",
|
||||
]
|
||||
NAME = [
|
||||
'GITHUB_REPOSITORY',
|
||||
'CI_PROJECT_PATH',
|
||||
"GITHUB_REPOSITORY",
|
||||
"CI_PROJECT_PATH",
|
||||
]
|
||||
ROOT = [
|
||||
'GITHUB_WORKSPACE',
|
||||
'CI_PROJECT_DIR',
|
||||
"GITHUB_WORKSPACE",
|
||||
"CI_PROJECT_DIR",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
from os import path
|
||||
|
||||
GROUP_AND_NAME = [
|
||||
'GITHUB_REPOSITORY',
|
||||
'CI_PROJECT_PATH',
|
||||
"GITHUB_REPOSITORY",
|
||||
"CI_PROJECT_PATH",
|
||||
]
|
||||
SERVER_URL = [
|
||||
'GITHUB_SERVER_URL',
|
||||
'CI_SERVER_URL',
|
||||
"GITHUB_SERVER_URL",
|
||||
"CI_SERVER_URL",
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue