aboutsummaryrefslogtreecommitdiff
path: root/src/utils/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/utils/mod.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 6052813..02ea85b 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -312,23 +312,3 @@ pub enum DeployPathToActivatePathError {
#[error("Deploy path was not valid utf8")]
InvalidUtf8,
}
-
-pub fn deploy_path_to_activate_path_str(
- deploy_defs: &DeployDefs,
-) -> Result<String, DeployPathToActivatePathError> {
- Ok(format!("{}/activate-rs", deploy_defs.profile_path))
-}
-
-#[test]
-fn test_activate_path_generation() {
- let defs = DeployDefs {
- ssh_user: "foo".to_string(),
- profile_user: "bar".to_string(),
- profile_path: "/nix/store/profile-closure".to_string(),
- sudo: None,
- };
- match deploy_path_to_activate_path_str(&defs) {
- Err(_) => panic!(""),
- Ok(x) => assert_eq!(x, "/nix/store/profile-closure/activate-rs".to_string()),
- }
-}