source · Rust

Services

crates/vak-ops/src/services.rs
Raw
75.5 KB2,065 lines45 anchorsSnapshot ed4ab258
  1. 2051 &paths,
  2. 2052 &fake,
  3. 2053 );
  4. 2054 assert!(unit_file_path("com.vak.telegram-VakBot", &paths).exists());
  5. 2055 assert!(unit_file_path("com.vak.discord-Ops", &paths).exists());
  6. 2056
  7. 2057 // Uninstall must remove every bot unit even though bots.json still
  8. 2058 // lists them — an uninstall wants "wanted = nothing", not a diff
  9. 2059 // against the still-present config file.
  10. 2060 uninstall_bot_units(&paths, &fake);
  11. 2061 assert!(!unit_file_path("com.vak.telegram-VakBot", &paths).exists());
  12. 2062 assert!(!unit_file_path("com.vak.discord-Ops", &paths).exists());
  13. 2063 }
  14. 2064}
  15. 2065