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.

20 lines
396 B

7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
  1. use std::borrow::Cow;
  2. use std::error::Error;
  3. use std::fmt::Display;
  4. use resources::Resource;
  5. pub trait Symbol: Display {
  6. fn target_reached(&self) -> Result<bool, Box<Error>>;
  7. fn execute(&self) -> Result<(), Box<Error>>;
  8. fn get_prerequisites(&self) -> Vec<Box<Resource>> {
  9. vec![]
  10. }
  11. }
  12. pub mod dir;
  13. pub mod file;
  14. pub mod git;
  15. pub mod npm;
  16. pub mod user;
  17. pub mod systemd;
  18. pub mod nginx;