From 22bbedf2985f98eb14bdcca9ae9c2384fc24269f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 3 Feb 2023 14:08:00 +0100 Subject: [PATCH] Show current running version --- lib/mrsk/cli/app.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/mrsk/cli/app.rb b/lib/mrsk/cli/app.rb index 36816178..ad02a4e0 100644 --- a/lib/mrsk/cli/app.rb +++ b/lib/mrsk/cli/app.rb @@ -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