utils_devops 0.1.150__py3-none-any.whl → 0.1.152__py3-none-any.whl

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.
@@ -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 systems.is_linux:
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,8 @@ 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 systems.is_windows:
551
+ elif remote_os is "windows":
552
+ env_lines.append("powershell ")
551
553
  # Windows syntax (PowerShell)
552
554
  for key, value in environment.items():
553
555
  print(f"DEBUG _inject_environment_variables: key='{key}', value='{value}', type={type(value)}") # DEBUG
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: utils_devops
3
- Version: 0.1.150
3
+ Version: 0.1.152
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
@@ -17,9 +17,9 @@ utils_devops/extras/network_ops.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
17
17
  utils_devops/extras/nginx_ops.py,sha256=FcfwGSuvcG5OX7UXPJpSTEMEBGYeT2g_I4kbTf-xY0w,100648
18
18
  utils_devops/extras/notification_ops.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  utils_devops/extras/performance_ops.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- utils_devops/extras/ssh_ops.py,sha256=ui4qghmccxTjJ5DYhmJxpL-kg1B-_wg0pV8qhNih5pc,76226
20
+ utils_devops/extras/ssh_ops.py,sha256=hTOYzyWmnZWzOLeZbCoZRLxSJiBmr0QgS_87qks-CYk,76305
21
21
  utils_devops/extras/vault_ops.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- utils_devops-0.1.150.dist-info/METADATA,sha256=u-ZKPBea28D3uAiivhG_873hzV6j_YSANR2q1oJhh7Y,1903
23
- utils_devops-0.1.150.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
24
- utils_devops-0.1.150.dist-info/entry_points.txt,sha256=ei3B6ZL5yu6dOq-U1r8wsBdkXeg63RAyV7m8_ADaE6k,53
25
- utils_devops-0.1.150.dist-info/RECORD,,
22
+ utils_devops-0.1.152.dist-info/METADATA,sha256=Wz2Az6iBoGRQzuPVAUrzfohvF9720qtkCf5lZ3p0uuU,1903
23
+ utils_devops-0.1.152.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
24
+ utils_devops-0.1.152.dist-info/entry_points.txt,sha256=ei3B6ZL5yu6dOq-U1r8wsBdkXeg63RAyV7m8_ADaE6k,53
25
+ utils_devops-0.1.152.dist-info/RECORD,,