aboutsummaryrefslogtreecommitdiff
path: root/src/deploy.rs
diff options
context:
space:
mode:
authornotgne22021-02-09 21:41:53 -0700
committernotgne22021-02-09 21:41:53 -0700
commitb8e28372500a0a5b14f501b63329a976462a0cc6 (patch)
treeee2d0c457615ecfdf74e678480b5b1ef8e5fefc8 /src/deploy.rs
parentfecc7e723db40c7e056371467275186b3bbb9ef3 (diff)
Clean up adding Command arguments
Diffstat (limited to 'src/deploy.rs')
-rw-r--r--src/deploy.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/deploy.rs b/src/deploy.rs
index 54d5ea7..fb6ce0a 100644
--- a/src/deploy.rs
+++ b/src/deploy.rs
@@ -153,11 +153,11 @@ pub async fn confirm_profile(
hostname: &str,
temp_path: Cow<'_, str>,
) -> Result<(), ConfirmProfileError> {
- let mut c = Command::new("ssh");
- let mut ssh_confirm_command = c.arg(format!("ssh://{}@{}", deploy_defs.ssh_user, hostname));
+ let mut ssh_confirm_command = Command::new("ssh");
+ ssh_confirm_command.arg(format!("ssh://{}@{}", deploy_defs.ssh_user, hostname));
for ssh_opt in &deploy_data.merged_settings.ssh_opts {
- ssh_confirm_command = ssh_confirm_command.arg(ssh_opt);
+ ssh_confirm_command.arg(ssh_opt);
}
let lock_path = super::make_lock_path(&temp_path, &deploy_data.profile.profile_settings.path);
@@ -248,8 +248,8 @@ pub async fn deploy_profile(
let ssh_addr = format!("ssh://{}@{}", deploy_defs.ssh_user, hostname);
- let mut ssh_activate_command_ = Command::new("ssh");
- let ssh_activate_command = ssh_activate_command_.arg(&ssh_addr);
+ let mut ssh_activate_command = Command::new("ssh");
+ ssh_activate_command.arg(&ssh_addr);
for ssh_opt in &deploy_data.merged_settings.ssh_opts {
ssh_activate_command.arg(&ssh_opt);
@@ -286,8 +286,8 @@ pub async fn deploy_profile(
info!("Creating activation waiter");
- let mut ssh_wait_command_ = Command::new("ssh");
- let ssh_wait_command = ssh_wait_command_.arg(&ssh_addr);
+ let mut ssh_wait_command = Command::new("ssh");
+ ssh_wait_command.arg(&ssh_addr);
for ssh_opt in &deploy_data.merged_settings.ssh_opts {
ssh_wait_command.arg(ssh_opt);