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.

25 lines
467 B

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
  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<Box<Resource>> {
  8. vec![]
  9. }
  10. }
  11. pub mod acme;
  12. pub mod dir;
  13. pub mod file;
  14. pub mod git;
  15. pub mod hook;
  16. pub mod list;
  17. pub mod nginx;
  18. pub mod not_a_symlink;
  19. pub mod npm;
  20. pub mod owner;
  21. pub mod systemd;
  22. pub mod tls;
  23. pub mod user;