I have a few methods doing this:
def method_a
Net::SSH.start(...) do |ssh|
end
end
def method_b
Net::SSH.start(...) do |ssh|
end
end
def method_c
Net::SSH.start(...) do |ssh|
end
end
Each methods call Net::SSH start which are individual SSH sessions, doing different things.
Is there a way to reuse Net::SSH session so that all 3 methods utilize a single session?
THanks.