aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authornotgne22020-10-08 18:13:26 -0700
committernotgne22020-10-08 18:14:47 -0700
commit518f7f5b4f1db83cab61941ab8887b0df76ce8d8 (patch)
treef33d3ebdf76681e1881bbe4d8a6bcd6b5577c072 /src/utils
parent3a92593bf9c4ca07a2b09888e4a3f7dff6c9c510 (diff)
Update documentation
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mod.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index bfdbc5e..97e4550 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -28,31 +28,6 @@ pub struct CmdOverrides {
pub hostname: Option<String>,
}
-pub enum OverridePurity {
- ErrorProfile,
- Error,
- Warn,
- Pure,
-}
-
-impl CmdOverrides {
- pub fn purity(&self) -> OverridePurity {
- if self.profile_user.is_some() {
- return OverridePurity::ErrorProfile;
- }
-
- if self.hostname.is_some() || self.ssh_user.is_some() {
- return OverridePurity::Error;
- }
-
- if self.ssh_opts.is_some() || self.fast_connection.is_some() {
- return OverridePurity::Warn;
- }
-
- OverridePurity::Pure
- }
-}
-
#[derive(PartialEq, Debug)]
pub struct DeployFlake<'a> {
pub repo: &'a str,