No need for protecting against re-invocation
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user