mantis-cli 19.1.4__tar.gz → 19.1.6__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.4/mantis_cli.egg-info → mantis-cli-19.1.6}/PKG-INFO +1 -1
  2. mantis-cli-19.1.6/mantis/__init__.py +1 -0
  3. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/managers.py +6 -3
  4. {mantis-cli-19.1.4 → mantis-cli-19.1.6/mantis_cli.egg-info}/PKG-INFO +1 -1
  5. mantis-cli-19.1.4/mantis/__init__.py +0 -1
  6. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/LICENSE +0 -0
  7. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/MANIFEST.in +0 -0
  8. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/README.md +0 -0
  9. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/__main__.py +0 -0
  10. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/command_line.py +0 -0
  11. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/crypto.py +0 -0
  12. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/environment.py +0 -0
  13. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/extensions/__init__.py +0 -0
  14. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/extensions/django.py +0 -0
  15. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/extensions/nginx.py +0 -0
  16. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/extensions/postgres.py +0 -0
  17. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/helpers.py +0 -0
  18. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/logic.py +0 -0
  19. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis/mantis.tpl +0 -0
  20. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis_cli.egg-info/SOURCES.txt +0 -0
  21. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis_cli.egg-info/dependency_links.txt +0 -0
  22. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis_cli.egg-info/entry_points.txt +0 -0
  23. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis_cli.egg-info/requires.txt +0 -0
  24. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/mantis_cli.egg-info/top_level.txt +0 -0
  25. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/setup.cfg +0 -0
  26. {mantis-cli-19.1.4 → mantis-cli-19.1.6}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 19.1.4
3
+ Version: 19.1.6
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.6'
@@ -570,7 +570,8 @@ class BaseManager(AbstractManager):
570
570
  Checks if given container has defined healthcheck
571
571
  """
572
572
  healthcheck_config = self.get_healthcheck_config(container)
573
- return healthcheck_config and healthcheck_config.get('Test')
573
+
574
+ return healthcheck_config and healthcheck_config.get('Test') != ['NONE']
574
575
 
575
576
  def get_healthcheck_start_period(self, container):
576
577
  """
@@ -839,7 +840,7 @@ class BaseManager(AbstractManager):
839
840
  self.upload()
840
841
  self.pull()
841
842
 
842
- is_running = len(self.get_containers()) != 0
843
+ is_running = len(self.get_containers(only_running=True)) != 0
843
844
 
844
845
  if is_running and not dirty:
845
846
  self.zero_downtime()
@@ -890,7 +891,7 @@ class BaseManager(AbstractManager):
890
891
  self.scale(service, scale)
891
892
 
892
893
  # healthcheck
893
- new_containers = self.get_containers(prefix=container_prefix, exclude=old_containers)
894
+ new_containers = self.get_containers(prefix=container_prefix, exclude=old_containers, only_running=True)
894
895
 
895
896
  for new_container in new_containers:
896
897
  self.healthcheck(container=new_container)
@@ -916,6 +917,8 @@ class BaseManager(AbstractManager):
916
917
  CLI.info(f'Renaming new container [{new_container}]...')
917
918
  self.docker(f'container rename {new_container} {container_prefix}-{index + 1}')
918
919
 
920
+ self.remove_suffixes(prefix=container_prefix)
921
+
919
922
  # reload webserver
920
923
  self.try_to_reload_webserver()
921
924
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 19.1.4
3
+ Version: 19.1.6
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.4'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes