It's all of them
This commit is contained in:
@@ -19,10 +19,10 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "reboot", "Reboot app on host (stop container, remove container, start new container)"
|
desc "reboot", "Reboot app on host (stop container, remove containers, start new container)"
|
||||||
def reboot
|
def reboot
|
||||||
stop
|
stop
|
||||||
remove_container
|
remove_containers
|
||||||
boot
|
boot
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -130,17 +130,17 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
|
|||||||
|
|
||||||
desc "remove", "Remove app containers and images from servers"
|
desc "remove", "Remove app containers and images from servers"
|
||||||
def remove
|
def remove
|
||||||
remove_container
|
remove_containers
|
||||||
remove_image
|
remove_images
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "remove_container", "Remove app container from servers"
|
desc "remove_containers", "Remove app containers from servers"
|
||||||
def remove_container
|
def remove_containers
|
||||||
on(MRSK.hosts) { execute *MRSK.app.remove_containers }
|
on(MRSK.hosts) { execute *MRSK.app.remove_containers }
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "remove_image [NAME]", "Remove app image from servers"
|
desc "remove_images [NAME]", "Remove app images from servers"
|
||||||
def remove_image
|
def remove_images
|
||||||
on(MRSK.hosts) { execute *MRSK.app.remove_images }
|
on(MRSK.hosts) { execute *MRSK.app.remove_images }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user