Show current running version

This commit is contained in:
David Heinemeier Hansson
2023-02-03 14:08:00 +01:00
parent 15a213eec6
commit 22bbedf298

View File

@@ -165,6 +165,11 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
on(MRSK.hosts) { execute *MRSK.app.remove_images }
end
desc "current_version", "Shows the version currently running"
def current_version
on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.current_running_version).strip }
end
private
def using_version(new_version)
if new_version