mantis-cli 19.1.2__tar.gz → 19.1.4__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.2/mantis_cli.egg-info → mantis-cli-19.1.4}/PKG-INFO +1 -1
- mantis-cli-19.1.4/mantis/__init__.py +1 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/managers.py +4 -4
- {mantis-cli-19.1.2 → mantis-cli-19.1.4/mantis_cli.egg-info}/PKG-INFO +1 -1
- mantis-cli-19.1.2/mantis/__init__.py +0 -1
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/LICENSE +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/MANIFEST.in +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/README.md +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/__main__.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/command_line.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/crypto.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/environment.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/__init__.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/django.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/nginx.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/postgres.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/helpers.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/logic.py +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/mantis.tpl +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/SOURCES.txt +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/dependency_links.txt +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/entry_points.txt +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/requires.txt +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/top_level.txt +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/setup.cfg +0 -0
- {mantis-cli-19.1.2 → mantis-cli-19.1.4}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '19.1.4'
|
|
@@ -261,14 +261,14 @@ class AbstractManager(object):
|
|
|
261
261
|
|
|
262
262
|
return None
|
|
263
263
|
|
|
264
|
-
def get_containers(self, prefix='', exclude=[]):
|
|
264
|
+
def get_containers(self, prefix='', exclude=[], only_running=False):
|
|
265
265
|
"""
|
|
266
266
|
Prints all project containers
|
|
267
267
|
:param prefix: container prefix
|
|
268
268
|
:param exclude: exclude containers
|
|
269
269
|
:return: list of container names
|
|
270
270
|
"""
|
|
271
|
-
containers = self.docker(f'container ls -a --format \'{{{{.Names}}}}\'', return_output=True) \
|
|
271
|
+
containers = self.docker(f'container ls {"" if only_running else "-a"} --format \'{{{{.Names}}}}\'', return_output=True) \
|
|
272
272
|
.strip('\n').strip().split('\n')
|
|
273
273
|
|
|
274
274
|
# Remove empty strings
|
|
@@ -858,7 +858,7 @@ class BaseManager(AbstractManager):
|
|
|
858
858
|
|
|
859
859
|
scale_param = ' '.join([f'--scale {service}={scale}' for service, scale in scales.items()])
|
|
860
860
|
|
|
861
|
-
self.up(
|
|
861
|
+
self.up(scale_param)
|
|
862
862
|
self.remove_suffixes()
|
|
863
863
|
self.try_to_reload_webserver()
|
|
864
864
|
|
|
@@ -878,7 +878,7 @@ class BaseManager(AbstractManager):
|
|
|
878
878
|
|
|
879
879
|
container_prefix = self.get_container_name(service)
|
|
880
880
|
|
|
881
|
-
old_containers = self.get_containers(prefix=container_prefix)
|
|
881
|
+
old_containers = self.get_containers(prefix=container_prefix, only_running=True)
|
|
882
882
|
num_containers = len(old_containers)
|
|
883
883
|
|
|
884
884
|
if num_containers == 0:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '19.1.2'
|
|
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
|