utils_devops 0.1.155__tar.gz → 0.1.157__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.
- {utils_devops-0.1.155 → utils_devops-0.1.157}/PKG-INFO +1 -1
- {utils_devops-0.1.155 → utils_devops-0.1.157}/pyproject.toml +1 -1
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/docker_ops.py +5 -3
- {utils_devops-0.1.155 → utils_devops-0.1.157}/README.md +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/__init__.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/__init__.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/datetimes.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/envs.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/files.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/logs.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/script_helpers.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/strings.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/core/systems.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/__init__.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/aws_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/git_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/interaction_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/metrics_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/network_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/nginx_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/notification_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/performance_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/ssh_ops.py +0 -0
- {utils_devops-0.1.155 → utils_devops-0.1.157}/src/utils_devops/extras/vault_ops.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: utils_devops
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.157
|
|
4
4
|
Summary: Lightweight DevOps utilities for automation scripts: config editing (YAML/JSON/INI/.env), templating, diffing, and CLI tools
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: devops,automation,nginx,cli,jinja2,yaml,config,diff,templating,logging,docker,compose,file-ops
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "utils_devops"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.157" # Bumped for new string features + diffing
|
|
4
4
|
description = "Lightweight DevOps utilities for automation scripts: config editing (YAML/JSON/INI/.env), templating, diffing, and CLI tools"
|
|
5
5
|
authors = ["Hamed Sheikhan <sh.sheikhan.m@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -786,7 +786,7 @@ def wait_for_healthy(
|
|
|
786
786
|
"""Wait for services to become healthy with detailed status logging."""
|
|
787
787
|
start_time = time.time()
|
|
788
788
|
attempt = 1
|
|
789
|
-
|
|
789
|
+
services = services or get_services_from_compose(compose_file , env_file)
|
|
790
790
|
while time.time() - start_time < timeout:
|
|
791
791
|
elapsed = time.time() - start_time
|
|
792
792
|
remaining = timeout - elapsed
|
|
@@ -2915,8 +2915,10 @@ def deploy_compose(
|
|
|
2915
2915
|
|
|
2916
2916
|
# Backup environment file separately for rollback
|
|
2917
2917
|
if files.file_exists(env_file):
|
|
2918
|
-
timestamp = dt_ops.current_datetime().strftime("%Y%m%d_%H%M%S")
|
|
2919
|
-
env_backup_file = f"{env_file}.backup.{timestamp}"
|
|
2918
|
+
#timestamp = dt_ops.current_datetime().strftime("%Y%m%d_%H%M%S")
|
|
2919
|
+
#env_backup_file = f"{env_file}.backup.{timestamp}"
|
|
2920
|
+
env_backup_file = f"{env_file}.backup"
|
|
2921
|
+
|
|
2920
2922
|
files.safe_copy(env_file, env_backup_file) # Fixed: use safe_copy, not safe_copy
|
|
2921
2923
|
deployment_state["env_backup_path"] = env_backup_file
|
|
2922
2924
|
|
|
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
|