aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authornotgne22020-10-10 10:31:58 -0700
committernotgne22020-10-10 10:31:58 -0700
commit4a2b677e892845b121d353864d54aec92a411e48 (patch)
tree39de25748b17ee9d2236a74e297b9bd7c33f6e28 /src/utils
parentdb8301a45796cd919cbfa085f85ac6288e73a8db (diff)
parent219d55e99e792a093c12dbc045bed88a4bfe1916 (diff)
Merge branch 'master' of github.com:notgne2/deploy-rs into master
Diffstat (limited to '')
-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 51f977f..672a9ba 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,