No need for protecting against re-invocation

This commit is contained in:
David Heinemeier Hansson
2023-01-23 10:37:49 +01:00
parent 148c43fe29
commit 699f271e6e

View File

@@ -22,9 +22,9 @@ class Mrsk::Cli::Accessory < Mrsk::Cli::Base
desc "reboot [NAME]", "Reboot accessory on host (stop container, remove container, start new container)" desc "reboot [NAME]", "Reboot accessory on host (stop container, remove container, start new container)"
def reboot(name) def reboot(name)
invoke :stop, [ name ] stop(name)
invoke :remove_container, [ name ] remove_container(name)
invoke :boot, [ name ] boot(name)
end end
desc "start [NAME]", "Start existing accessory on host" desc "start [NAME]", "Start existing accessory on host"
@@ -41,8 +41,8 @@ class Mrsk::Cli::Accessory < Mrsk::Cli::Base
desc "restart [NAME]", "Restart accessory on host" desc "restart [NAME]", "Restart accessory on host"
def restart(name) def restart(name)
invoke :stop, [ name ] stop(name)
invoke :start, [ name ] start(name)
end end
desc "details [NAME]", "Display details about accessory on host" desc "details [NAME]", "Display details about accessory on host"