Use no_commands block
This commit is contained in:
@@ -244,6 +244,7 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
|
||||
on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.current_running_version).strip }
|
||||
end
|
||||
|
||||
no_commands do
|
||||
def stale_versions(host:, role:)
|
||||
stale_versions = nil
|
||||
on(host) do
|
||||
@@ -254,6 +255,7 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
|
||||
end
|
||||
stale_versions
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def using_version(new_version)
|
||||
|
||||
Reference in New Issue
Block a user