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.
Files changed (26) hide show
  1. {mantis-cli-19.1.2/mantis_cli.egg-info → mantis-cli-19.1.4}/PKG-INFO +1 -1
  2. mantis-cli-19.1.4/mantis/__init__.py +1 -0
  3. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/managers.py +4 -4
  4. {mantis-cli-19.1.2 → mantis-cli-19.1.4/mantis_cli.egg-info}/PKG-INFO +1 -1
  5. mantis-cli-19.1.2/mantis/__init__.py +0 -1
  6. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/LICENSE +0 -0
  7. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/MANIFEST.in +0 -0
  8. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/README.md +0 -0
  9. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/__main__.py +0 -0
  10. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/command_line.py +0 -0
  11. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/crypto.py +0 -0
  12. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/environment.py +0 -0
  13. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/__init__.py +0 -0
  14. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/django.py +0 -0
  15. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/nginx.py +0 -0
  16. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/extensions/postgres.py +0 -0
  17. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/helpers.py +0 -0
  18. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/logic.py +0 -0
  19. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis/mantis.tpl +0 -0
  20. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/SOURCES.txt +0 -0
  21. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/dependency_links.txt +0 -0
  22. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/entry_points.txt +0 -0
  23. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/requires.txt +0 -0
  24. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/mantis_cli.egg-info/top_level.txt +0 -0
  25. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/setup.cfg +0 -0
  26. {mantis-cli-19.1.2 → mantis-cli-19.1.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 19.1.2
3
+ Version: 19.1.4
4
4
  Summary: Management command to build and deploy webapps, especially based on Django
5
5
  Home-page: https://github.com/PragmaticMates/mantis-cli
6
6
  Author: Erik Telepovský
@@ -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(f'{scale_param}')
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 19.1.2
3
+ Version: 19.1.4
4
4
  Summary: Management command to build and deploy webapps, especially based on Django
5
5
  Home-page: https://github.com/PragmaticMates/mantis-cli
6
6
  Author: Erik Telepovský
@@ -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