mantis-cli 15.3.1__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.
Files changed (26) hide show
  1. {mantis-cli-15.3.1/mantis_cli.egg-info → mantis-cli-16.0.0}/PKG-INFO +1 -1
  2. mantis-cli-16.0.0/mantis/__init__.py +1 -0
  3. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/command_line.py +2 -5
  4. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/managers.py +10 -0
  5. {mantis-cli-15.3.1 → mantis-cli-16.0.0/mantis_cli.egg-info}/PKG-INFO +1 -1
  6. mantis-cli-15.3.1/mantis/__init__.py +0 -1
  7. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/LICENSE +0 -0
  8. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/MANIFEST.in +0 -0
  9. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/README.md +0 -0
  10. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/__main__.py +0 -0
  11. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/crypto.py +0 -0
  12. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/environment.py +0 -0
  13. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/extensions/__init__.py +0 -0
  14. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/extensions/django.py +0 -0
  15. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/extensions/nginx.py +0 -0
  16. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/extensions/postgres.py +0 -0
  17. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/helpers.py +0 -0
  18. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/logic.py +0 -0
  19. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis/mantis.tpl +0 -0
  20. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis_cli.egg-info/SOURCES.txt +0 -0
  21. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis_cli.egg-info/dependency_links.txt +0 -0
  22. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis_cli.egg-info/entry_points.txt +0 -0
  23. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis_cli.egg-info/requires.txt +0 -0
  24. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/mantis_cli.egg-info/top_level.txt +0 -0
  25. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/setup.cfg +0 -0
  26. {mantis-cli-15.3.1 → mantis-cli-16.0.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 15.3.1
3
+ Version: 16.0.0
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 = '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
- if manager.host:
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
 
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mantis-cli
3
- Version: 15.3.1
3
+ Version: 16.0.0
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 = '15.3.1'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes