utils_devops 0.1.150__tar.gz → 0.1.151__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.150 → utils_devops-0.1.151}/PKG-INFO +1 -1
- {utils_devops-0.1.150 → utils_devops-0.1.151}/pyproject.toml +1 -1
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/ssh_ops.py +4 -3
- {utils_devops-0.1.150 → utils_devops-0.1.151}/README.md +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/__init__.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/__init__.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/datetimes.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/envs.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/files.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/logs.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/script_helpers.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/strings.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/core/systems.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/__init__.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/aws_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/docker_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/git_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/interaction_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/metrics_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/network_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/nginx_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/notification_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/src/utils_devops/extras/performance_ops.py +0 -0
- {utils_devops-0.1.150 → utils_devops-0.1.151}/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.151
|
|
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.151" # 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"
|
|
@@ -530,7 +530,8 @@ def _resolve_ssh_key(key_input: Optional[Union[str, Path]]) -> Tuple[Optional[Pa
|
|
|
530
530
|
|
|
531
531
|
def _inject_environment_variables(
|
|
532
532
|
environment: Optional[Dict[str, str]] = None,
|
|
533
|
-
base_command: str = ""
|
|
533
|
+
base_command: str = "",
|
|
534
|
+
remote_os: str = "linux"
|
|
534
535
|
) -> str:
|
|
535
536
|
"""
|
|
536
537
|
Creates a command string that safely injects environment variables.
|
|
@@ -539,7 +540,7 @@ def _inject_environment_variables(
|
|
|
539
540
|
return base_command
|
|
540
541
|
|
|
541
542
|
env_lines = []
|
|
542
|
-
if
|
|
543
|
+
if remote_os is "linux":
|
|
543
544
|
# Linux syntax: export VAR='value'
|
|
544
545
|
for key, value in environment.items():
|
|
545
546
|
print(f"DEBUG _inject_environment_variables: key='{key}', value='{value}', type={type(value)}") # DEBUG
|
|
@@ -547,7 +548,7 @@ def _inject_environment_variables(
|
|
|
547
548
|
env_lines.append(f"export {key}='{escaped_value}'")
|
|
548
549
|
env_setup = " && ".join(env_lines)
|
|
549
550
|
prefix = f"{env_setup} && "
|
|
550
|
-
elif
|
|
551
|
+
elif remote_os is "windows":
|
|
551
552
|
# Windows syntax (PowerShell)
|
|
552
553
|
for key, value in environment.items():
|
|
553
554
|
print(f"DEBUG _inject_environment_variables: key='{key}', value='{value}', type={type(value)}") # DEBUG
|
|
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
|