From 20aa88ca51ca9435b8abfe58ee932830e9faec2b Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 9 Dec 2022 18:04:26 +0530 Subject: [PATCH] fix: new site deployment requires extra info --- env/libconductor/src/event_types.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/env/libconductor/src/event_types.rs b/env/libconductor/src/event_types.rs index 3a9d87b..5ddfd5c 100644 --- a/env/libconductor/src/event_types.rs +++ b/env/libconductor/src/event_types.rs @@ -17,9 +17,16 @@ use libconfig::Config as LibCOnfig; use serde::{Deserialize, Serialize}; +#[derive(Deserialize, Serialize, Debug, PartialEq, Eq, Clone)] +pub struct NewSite { + pub path: String, + pub branch: String, + pub hostname: String, + } + #[derive(Deserialize, Serialize, Debug, PartialEq, Eq, Clone)] #[serde(untagged)] pub enum EventType { - NewHostname(String), + NewSite(NewSite), Config(LibCOnfig), }