mantis-cli 19.1.7__tar.gz → 19.2.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-19.1.7/mantis_cli.egg-info → mantis_cli-19.2.0}/PKG-INFO +1 -1
- mantis_cli-19.2.0/mantis/__init__.py +1 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/managers.py +15 -1
- {mantis_cli-19.1.7 → mantis_cli-19.2.0/mantis_cli.egg-info}/PKG-INFO +1 -1
- mantis_cli-19.1.7/mantis/__init__.py +0 -1
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/LICENSE +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/MANIFEST.in +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/README.md +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/__main__.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/command_line.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/crypto.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/environment.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/extensions/__init__.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/extensions/django.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/extensions/nginx.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/extensions/postgres.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/helpers.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/logic.py +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis/mantis.tpl +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis_cli.egg-info/SOURCES.txt +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis_cli.egg-info/dependency_links.txt +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis_cli.egg-info/entry_points.txt +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis_cli.egg-info/requires.txt +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/mantis_cli.egg-info/top_level.txt +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/setup.cfg +0 -0
- {mantis_cli-19.1.7 → mantis_cli-19.2.0}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '19.2.0'
|
|
@@ -141,9 +141,15 @@ class AbstractManager(object):
|
|
|
141
141
|
|
|
142
142
|
self.key_file = normalize(path.join(self.config['encryption']['folder'], 'mantis.key'))
|
|
143
143
|
self.environment_path = normalize(self.config['environment']['folder'])
|
|
144
|
-
|
|
144
|
+
|
|
145
|
+
if self.environment_id:
|
|
146
|
+
self.compose_path = normalize(path.join(self.config['compose']['folder'], self.environment_id))
|
|
145
147
|
|
|
146
148
|
def init_environment(self):
|
|
149
|
+
if not self.environment_id:
|
|
150
|
+
self.connection = None
|
|
151
|
+
return
|
|
152
|
+
|
|
147
153
|
self.env = Environment(
|
|
148
154
|
environment_id=self.environment_id,
|
|
149
155
|
folder=self.environment_path,
|
|
@@ -1161,6 +1167,14 @@ class BaseManager(AbstractManager):
|
|
|
1161
1167
|
"""
|
|
1162
1168
|
container, command = params.split(' ', maxsplit=1)
|
|
1163
1169
|
CLI.info(f'Executing command "{command}" in container {container}...')
|
|
1170
|
+
self.docker(f'exec {container} {command}')
|
|
1171
|
+
|
|
1172
|
+
def exec_it(self, params):
|
|
1173
|
+
"""
|
|
1174
|
+
Executes command in container using interactive pseudo-TTY
|
|
1175
|
+
"""
|
|
1176
|
+
container, command = params.split(' ', maxsplit=1)
|
|
1177
|
+
CLI.info(f'Executing command "{command}" in container {container}...')
|
|
1164
1178
|
self.docker(f'exec -it {container} {command}')
|
|
1165
1179
|
|
|
1166
1180
|
def get_healthcheck_config(self, container):
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '19.1.7'
|
|
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
|
|
File without changes
|