git.delta.rocks / jrsonnet / refs/commits / 15fd410bcd78

difftreelog

fix run activation script on deploy boot subcommand

Yaroslav Bolyukin2024-11-12parent: #d8d77b8.patch.diff
in: trunk

1 file changed

modifiedcmds/fleet/src/cmds/build_systems.rsdiffbeforeafterboth
35impl DeployAction {35impl DeployAction {
36 pub(crate) fn name(&self) -> Option<&'static str> {36 pub(crate) fn name(&self) -> Option<&'static str> {
37 match self {37 match self {
38 DeployAction::Upload => None,38 Self::Upload => None,
39 DeployAction::Test => Some("test"),39 Self::Test => Some("test"),
40 DeployAction::Boot => Some("boot"),40 Self::Boot => Some("boot"),
41 DeployAction::Switch => Some("switch"),41 Self::Switch => Some("switch"),
42 }42 }
43 }43 }
44 pub(crate) fn should_switch_profile(&self) -> bool {44 pub(crate) fn should_switch_profile(&self) -> bool {
45 matches!(self, Self::Switch | Self::Boot)45 matches!(self, Self::Switch | Self::Boot)
46 }46 }
47 pub(crate) fn should_activate(&self) -> bool {47 pub(crate) fn should_activate(&self) -> bool {
48 matches!(self, Self::Switch | Self::Test)48 matches!(self, Self::Switch | Self::Test | Self::Boot)
49 }49 }
50 pub(crate) fn should_create_rollback_marker(&self) -> bool {50 pub(crate) fn should_create_rollback_marker(&self) -> bool {
51 // Upload does nothing on the target machine, other than uploading the closure.51 // Upload does nothing on the target machine, other than uploading the closure.