Extract capture_with_info
This commit is contained in:
@@ -2,7 +2,11 @@ require "sshkit"
|
||||
require "sshkit/dsl"
|
||||
|
||||
class SSHKit::Backend::Abstract
|
||||
def puts_by_host(host, output)
|
||||
puts "App Host: #{host}\n#{output}\n\n"
|
||||
def capture_with_info(*args)
|
||||
capture(*args, verbosity: Logger::INFO)
|
||||
end
|
||||
|
||||
def puts_by_host(host, output, type: "App")
|
||||
puts "#{type} Host: #{host}\n#{output}\n\n"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user