Files
kamal/lib/mrsk/sshkit_with_ext.rb
2023-04-11 16:04:46 +02:00

13 lines
277 B
Ruby

require "sshkit"
require "sshkit/dsl"
class SSHKit::Backend::Abstract
def capture_with_info(*args, **kwargs)
capture(*args, **kwargs, verbosity: Logger::INFO)
end
def puts_by_host(host, output, type: "App")
puts "#{type} Host: #{host}\n#{output}\n\n"
end
end