mantis-cli 15.3.0__tar.gz → 16.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mantis-cli-15.3.0/mantis_cli.egg-info → mantis-cli-16.0.0}/PKG-INFO +1 -1
- mantis-cli-16.0.0/mantis/__init__.py +1 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/command_line.py +2 -5
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/managers.py +11 -1
- {mantis-cli-15.3.0 → mantis-cli-16.0.0/mantis_cli.egg-info}/PKG-INFO +1 -1
- mantis-cli-15.3.0/mantis/__init__.py +0 -1
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/LICENSE +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/MANIFEST.in +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/README.md +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/__main__.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/crypto.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/environment.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/extensions/__init__.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/extensions/django.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/extensions/nginx.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/extensions/postgres.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/helpers.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/logic.py +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis/mantis.tpl +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis_cli.egg-info/SOURCES.txt +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis_cli.egg-info/dependency_links.txt +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis_cli.egg-info/entry_points.txt +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis_cli.egg-info/requires.txt +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/mantis_cli.egg-info/top_level.txt +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/setup.cfg +0 -0
- {mantis-cli-15.3.0 → mantis-cli-16.0.0}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '16.0.0'
|
|
@@ -77,11 +77,8 @@ def run():
|
|
|
77
77
|
|
|
78
78
|
environment_intro = f'Environment ID = {Colors.BOLD}{manager.environment_id}{Colors.ENDC}, ' if manager.environment_id else ''
|
|
79
79
|
|
|
80
|
-
if manager.connection:
|
|
81
|
-
|
|
82
|
-
host_intro = f'{Colors.RED}{manager.host}{Colors.ENDC}, '
|
|
83
|
-
else:
|
|
84
|
-
CLI.error(f'Invalid host: {manager.host}')
|
|
80
|
+
if manager.connection and manager.host:
|
|
81
|
+
host_intro = f'{Colors.RED}{manager.host}{Colors.ENDC}, '
|
|
85
82
|
else:
|
|
86
83
|
host_intro = ''
|
|
87
84
|
|
|
@@ -667,7 +667,7 @@ class BaseManager(AbstractManager):
|
|
|
667
667
|
elif build_tool == 'docker':
|
|
668
668
|
for service, info in self.services_to_build().items():
|
|
669
669
|
platform = f"--platform={info['platform']}" if info['platform'] != '' else ''
|
|
670
|
-
cache_from = ' '.join([f"--cache-from
|
|
670
|
+
cache_from = ' '.join([f"--cache-from {cache}" for cache in info['cache_from']]) if info['cache_from'] != [] else ''
|
|
671
671
|
args = ' '.join([f"--build-arg {key}={value}" for key, value in info['args'].items()]) if info['args'] != {} else ''
|
|
672
672
|
image = info['image'] if info['image'] != '' else f'{self.PROJECT_NAME}-{service}'.lstrip('-')
|
|
673
673
|
|
|
@@ -1079,6 +1079,16 @@ class BaseManager(AbstractManager):
|
|
|
1079
1079
|
CLI.info('Logging to container...')
|
|
1080
1080
|
self.docker(f'exec -it --user root {params} /bin/sh')
|
|
1081
1081
|
|
|
1082
|
+
def ssh(self):
|
|
1083
|
+
if not self.connection:
|
|
1084
|
+
CLI.error('Missing connection details')
|
|
1085
|
+
|
|
1086
|
+
if not self.host:
|
|
1087
|
+
CLI.error('Unknown host')
|
|
1088
|
+
|
|
1089
|
+
CLI.info(f'Executing SSH connection: {self.connection}')
|
|
1090
|
+
os.system(f'ssh {self.user}@{self.host} -p {self.port or 22}')
|
|
1091
|
+
|
|
1082
1092
|
def exec(self, params):
|
|
1083
1093
|
"""
|
|
1084
1094
|
Executes command in container
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '15.3.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|