Formatting
This commit is contained in:
@@ -96,12 +96,7 @@ fn run() -> Result<()> {
|
|||||||
if let Some(topgrades) = config.remote_topgrades() {
|
if let Some(topgrades) = config.remote_topgrades() {
|
||||||
if config.should_run(Step::Remotes) {
|
if config.should_run(Step::Remotes) {
|
||||||
for remote_topgrade in topgrades {
|
for remote_topgrade in topgrades {
|
||||||
runner.execute(remote_topgrade, || {
|
runner.execute(remote_topgrade, || generic::run_remote_topgrade(&ctx, remote_topgrade))?;
|
||||||
generic::run_remote_topgrade(
|
|
||||||
&ctx,
|
|
||||||
remote_topgrade,
|
|
||||||
)
|
|
||||||
})?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,10 +197,7 @@ pub fn run_composer_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run_remote_topgrade(
|
pub fn run_remote_topgrade(ctx: &ExecutionContext, hostname: &str) -> Result<()> {
|
||||||
ctx: &ExecutionContext,
|
|
||||||
hostname: &str,
|
|
||||||
) -> Result<()> {
|
|
||||||
let ssh = utils::require("ssh")?;
|
let ssh = utils::require("ssh")?;
|
||||||
|
|
||||||
if ctx.config().run_in_tmux() && !ctx.run_type().dry() {
|
if ctx.config().run_in_tmux() && !ctx.run_type().dry() {
|
||||||
|
|||||||
Reference in New Issue
Block a user