diff --git a/src/sls/mod.rs b/src/sls/mod.rs index 4ef87af..7bf3f80 100644 --- a/src/sls/mod.rs +++ b/src/sls/mod.rs @@ -1 +1,2 @@ -pub mod parsing; \ No newline at end of file +pub mod parsing; +pub mod state; \ No newline at end of file diff --git a/src/sls/state/file.rs b/src/sls/state/file.rs new file mode 100644 index 0000000..a28058b --- /dev/null +++ b/src/sls/state/file.rs @@ -0,0 +1,8 @@ + +pub enum FileState { + Managed, + Present, + Absent, + BlockReplace, + Symlinked +} \ No newline at end of file diff --git a/src/sls/state/mod.rs b/src/sls/state/mod.rs new file mode 100644 index 0000000..32aa675 --- /dev/null +++ b/src/sls/state/mod.rs @@ -0,0 +1,10 @@ +use crate::sls::state::file::FileState; +use crate::sls::state::service::ServiceState; + +pub mod file; +pub mod service; + +pub enum State { + File (FileState), + Service (ServiceState), +} \ No newline at end of file diff --git a/src/sls/state/service.rs b/src/sls/state/service.rs new file mode 100644 index 0000000..07185c9 --- /dev/null +++ b/src/sls/state/service.rs @@ -0,0 +1,6 @@ + + +pub enum ServiceState { + Running, + Stopped, +} \ No newline at end of file