A library for writing host-specific, single-binary configuration management and deployment tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
568 B

7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. use std::error::Error;
  2. use std::fmt::Display;
  3. use resources::Resource;
  4. pub trait Symbol: Display {
  5. fn target_reached(&self) -> Result<bool, Box<Error>>;
  6. fn execute(&self) -> Result<(), Box<Error>>;
  7. fn get_prerequisites(&self) -> Vec<Resource> {
  8. vec![]
  9. }
  10. fn provides(&self) -> Option<Vec<Resource>> {
  11. None
  12. }
  13. }
  14. pub mod acme;
  15. pub mod dir;
  16. pub mod file;
  17. pub mod git;
  18. pub mod hook;
  19. pub mod if_already_present;
  20. pub mod list;
  21. pub mod mariadb;
  22. pub mod nginx;
  23. pub mod not_a_symlink;
  24. pub mod npm;
  25. pub mod owner;
  26. pub mod systemd;
  27. pub mod tls;
  28. pub mod user;