ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

rename on_target > execute_on_remote

+6 -6
+1 -1
crates/core/src/commands/mod.rs
··· 68 68 } 69 69 } 70 70 71 - pub(crate) const fn on_target(mut self, target: Option<&'a Target>) -> Self { 71 + pub(crate) const fn execute_on_remote(mut self, target: Option<&'a Target>) -> Self { 72 72 self.target = target; 73 73 self 74 74 }
+3 -3
crates/core/src/hive/steps/activate.rs
··· 58 58 let child = run_command( 59 59 &CommandArguments::new(command_string, ctx.modifiers) 60 60 .mode(crate::commands::ChildOutputMode::Nix) 61 - .on_target(if apply_objective.should_apply_locally { 61 + .execute_on_remote(if apply_objective.should_apply_locally { 62 62 None 63 63 } else { 64 64 Some(&ctx.node.target) ··· 121 121 122 122 let child = run_command( 123 123 &CommandArguments::new(command_string, ctx.modifiers) 124 - .on_target(if apply_objective.should_apply_locally { 124 + .execute_on_remote(if apply_objective.should_apply_locally { 125 125 None 126 126 } else { 127 127 Some(&ctx.node.target) ··· 150 150 let reboot = run_command( 151 151 &CommandArguments::new("reboot now", ctx.modifiers) 152 152 .log_stdout() 153 - .on_target(Some(&ctx.node.target)) 153 + .execute_on_remote(Some(&ctx.node.target)) 154 154 .elevated(ctx.node), 155 155 ) 156 156 .await?;
+1 -1
crates/core/src/hive/steps/build.rs
··· 54 54 // 55 55 // (building remotely but applying locally does not logically 56 56 // make any sense) 57 - .on_target( 57 + .execute_on_remote( 58 58 if ctx.node.build_remotely 59 59 && let Objective::Apply(apply_objective) = ctx.objective 60 60 && apply_objective.should_apply_locally
+1 -1
crates/core/src/hive/steps/keys.rs
··· 266 266 267 267 let mut child = run_command( 268 268 &CommandArguments::new(command_string, ctx.modifiers) 269 - .on_target(if apply_objective.should_apply_locally { 269 + .execute_on_remote(if apply_objective.should_apply_locally { 270 270 None 271 271 } else { 272 272 Some(&ctx.node.target)