Add images command to see what's on the server for the service repository

This commit is contained in:
David Heinemeier Hansson
2023-02-02 16:53:46 +01:00
parent 212d5ec783
commit c8f673ef7c
2 changed files with 9 additions and 0 deletions

View File

@@ -93,6 +93,11 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.list_containers) }
end
desc "images", "List all the app images currently on servers"
def images
on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.list_images) }
end
desc "current", "Return the current running container ID"
def current
on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.current_container_id) }