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