-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2667: feat(si): Implement a Container Engine Trait r=stack72 a=stack72 This is a container engine trait that needs to be completed before any new containe engines are added to the SI Launcher prerequisite for #2607 Co-authored-by: stack72 <[email protected]>
- Loading branch information
Showing
23 changed files
with
1,406 additions
and
678 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
use crate::containers::DockerClient; | ||
use crate::key_management::get_user_email; | ||
use crate::state::AppState; | ||
use crate::CliResult; | ||
|
||
impl AppState { | ||
pub async fn restart(&self, docker: &DockerClient) -> CliResult<()> { | ||
pub async fn restart(&self) -> CliResult<()> { | ||
self.track( | ||
get_user_email().await?, | ||
serde_json::json!({"command-name": "restart-system"}), | ||
); | ||
invoke(self, docker).await?; | ||
invoke(self).await?; | ||
Ok(()) | ||
} | ||
} | ||
|
||
async fn invoke(app: &AppState, docker: &DockerClient) -> CliResult<()> { | ||
app.stop(docker).await?; | ||
app.start(docker).await?; | ||
async fn invoke(app: &AppState) -> CliResult<()> { | ||
app.stop().await?; | ||
app.start().await?; | ||
|
||
Ok(()) | ||
} |
Oops, something went wrong.