class Jisota::SSHEngine
Public Class Methods
new(options = {})
click to toggle source
# File lib/jisota/ssh_engine.rb, line 5 def initialize(options = {}) @engine = options.fetch(:engine) { Net::SSH } end
Public Instance Methods
start(user: , host: , **options) { |ssh_session| ... }
click to toggle source
# File lib/jisota/ssh_engine.rb, line 9 def start(user: , host: , **options) @engine.start(host, user, options) do |ssh_session| yield SSHSession.new(ssh_session) end end