vm-tool 1.0.46__py3-none-any.whl → 1.0.48__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.
vm_tool/cli.py CHANGED
@@ -655,7 +655,7 @@ def main():
655
655
  project_dir = f"~/apps/{args.repo_name}"
656
656
  else:
657
657
  project_dir = "~/app"
658
-
658
+
659
659
  # Dry-run mode: show what would be deployed
660
660
  if args.dry_run:
661
661
  print("\n🔍 DRY-RUN MODE - No changes will be made\n")
@@ -703,7 +703,9 @@ def main():
703
703
  if host and (args.health_check or args.health_port or args.health_url):
704
704
  from vm_tool.health import SmokeTestSuite
705
705
 
706
- print(f"\n🏥 Running Health Checks (Timeout: {args.health_timeout}s)...")
706
+ print(
707
+ f"\n🏥 Running Health Checks (Timeout: {args.health_timeout}s)..."
708
+ )
707
709
  suite = SmokeTestSuite(host, timeout=args.health_timeout)
708
710
 
709
711
  if args.health_port:
@@ -769,6 +771,34 @@ def main():
769
771
  else:
770
772
  print_completion(args.shell)
771
773
 
774
+ elif args.command == "prepare-release":
775
+ from vm_tool.release import ReleaseManager
776
+
777
+ manager = ReleaseManager(verbose=args.verbose)
778
+ try:
779
+ manager.prepare_release(
780
+ base_file=args.base_file,
781
+ prod_file=args.prod_file,
782
+ output_file=args.output,
783
+ strip_volumes=args.strip_volumes,
784
+ fix_paths=args.fix_paths,
785
+ )
786
+ except Exception as e:
787
+ print(f"❌ Release preparation failed: {e}")
788
+ sys.exit(1)
789
+
790
+ elif args.command == "setup-ci":
791
+ from vm_tool.runner import SetupRunner
792
+
793
+ # No config needed for this utility
794
+ try:
795
+ # We can add a static method or simple function for this
796
+ SetupRunner.setup_ci_environment(provider=args.provider)
797
+ print("✅ CI Environment configured successfully")
798
+ except Exception as e:
799
+ print(f"❌ CI Setup failed: {e}")
800
+ sys.exit(1)
801
+
772
802
  elif args.command == "generate-pipeline":
773
803
  try:
774
804
  from vm_tool.generator import PipelineGenerator
@@ -824,37 +854,7 @@ def main():
824
854
  if deployment_type == "custom":
825
855
  deploy_command = input("Enter custom deployment command: ").strip()
826
856
 
827
- except Exception as e:
828
- print(f"❌ Pipeline generation failed: {e}")
829
- sys.exit(1)
830
-
831
- elif args.command == "prepare-release":
832
- from vm_tool.release import ReleaseManager
833
- manager = ReleaseManager(verbose=args.verbose)
834
- try:
835
- manager.prepare_release(
836
- base_file=args.base_file,
837
- prod_file=args.prod_file,
838
- output_file=args.output,
839
- strip_volumes=args.strip_volumes,
840
- fix_paths=args.fix_paths
841
- )
842
- except Exception as e:
843
- print(f"❌ Release preparation failed: {e}")
844
- sys.exit(1)
845
-
846
- elif args.command == "setup-ci":
847
- from vm_tool.runner import SetupRunner
848
- # No config needed for this utility
849
- try:
850
- # We can add a static method or simple function for this
851
- SetupRunner.setup_ci_environment(provider=args.provider)
852
- print("✅ CI Environment configured successfully")
853
- except Exception as e:
854
- print(f"❌ CI Setup failed: {e}")
855
- sys.exit(1)
856
-
857
- elif deployment_type == "docker":
857
+ elif deployment_type == "docker":
858
858
  docker_compose_file = (
859
859
  input(
860
860
  "Enter Docker Compose file name [docker-compose.yml]: "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vm_tool
3
- Version: 1.0.46
3
+ Version: 1.0.48
4
4
  Summary: A Comprehensive Tool for Setting Up Virtual Machines.
5
5
  Home-page: https://github.com/thesunnysinha/vm_tool
6
6
  Author: Sunny Sinha
@@ -24,7 +24,7 @@ vm_tool/alerting.py,sha256=6bNfQNSAQ_SJW9dQfB8s8gDZ-7ocYw4Q211VM6FWiXU,8269
24
24
  vm_tool/audit.py,sha256=spVtMcwadTkD9lELH1tur7Dr3OHjajk44ZatKYEbeVI,3388
25
25
  vm_tool/backup.py,sha256=WhwCXXJDYCQgoexroksNhWgB5ki6HUly0JhQ9ybCdMg,4130
26
26
  vm_tool/benchmarking.py,sha256=9AZ4JwKd5aEjwtKnhsuFa77y6WSO_fSEIqgMh3w_Btw,6212
27
- vm_tool/cli.py,sha256=BiBgnbFfqpmrecw9_jParJSRUlArm-sNMSS8wtHcCU8,35786
27
+ vm_tool/cli.py,sha256=HaUGspOF-fXlxrDyL_EV7iElqukHCefVQh0-9bQB3Ow,35704
28
28
  vm_tool/cloud.py,sha256=1fQV1o3wCth55B1hSenME_j2n5gCJDo9gtUcqDxCs7s,4047
29
29
  vm_tool/completion.py,sha256=U8W8mmNdR0Ci0WjlEIa8CLOUtaVLZ5tWYpqViBBIBF8,7431
30
30
  vm_tool/compliance.py,sha256=7yXrvRoPxJMW0DTVhJ-ZxbaJo7quDSVgae2_mYbVAmE,3173
@@ -67,9 +67,9 @@ vm_tool/vm_setup/docker/docker_setup.yml,sha256=kg6Abu3TjcLwV0JHnCAVUkj5l2HaGf7O
67
67
  vm_tool/vm_setup/docker/install_docker_and_compose.yml,sha256=NxPm4YkOekRH0dpJQVgxjcSqrmT6f912Dv0owYsLBxE,3402
68
68
  vm_tool/vm_setup/docker/login_to_docker_hub.yml,sha256=y9WaWLb1f1SuHVa1NNm24Gvf5bbwQ8eqEsImGLHGHGU,223
69
69
  vm_tool/vm_setup/github/git_configuration.yml,sha256=hKuzOFsVlYRoBAXujREfrLiqV7j4RnQYbL5s63AEAqk,2355
70
- vm_tool-1.0.46.dist-info/licenses/LICENSE,sha256=4OO6Zd_hYEOemzTNdgUR_E7oNvUJLuN2E7ZAgm7DcSM,1063
71
- vm_tool-1.0.46.dist-info/METADATA,sha256=LARUVa6GPGXfWTrgERzF-xVGS91SsVZfbedtXzUY9fE,6191
72
- vm_tool-1.0.46.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
73
- vm_tool-1.0.46.dist-info/entry_points.txt,sha256=A2EAvw95ftFXzVAWfHKIM-SsxQVxrIrByRNe-ArOp2k,45
74
- vm_tool-1.0.46.dist-info/top_level.txt,sha256=jTLckJpKvJplpmKoMhPz2YKp_sQB9Q5-cCGmUHCp06M,17
75
- vm_tool-1.0.46.dist-info/RECORD,,
70
+ vm_tool-1.0.48.dist-info/licenses/LICENSE,sha256=4OO6Zd_hYEOemzTNdgUR_E7oNvUJLuN2E7ZAgm7DcSM,1063
71
+ vm_tool-1.0.48.dist-info/METADATA,sha256=tczWbbbvNswATE8pjkif5pq1c5dlQjppKre1N6qGkM4,6191
72
+ vm_tool-1.0.48.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
73
+ vm_tool-1.0.48.dist-info/entry_points.txt,sha256=A2EAvw95ftFXzVAWfHKIM-SsxQVxrIrByRNe-ArOp2k,45
74
+ vm_tool-1.0.48.dist-info/top_level.txt,sha256=jTLckJpKvJplpmKoMhPz2YKp_sQB9Q5-cCGmUHCp06M,17
75
+ vm_tool-1.0.48.dist-info/RECORD,,