class Bcome::Ssh::TunnelKeeper

Public Class Methods

new() click to toggle source
# File lib/objects/ssh/tunnel_keeper.rb, line 8
def initialize
  @tunnels = []
end

Public Instance Methods

<<(tunnel) click to toggle source
# File lib/objects/ssh/tunnel_keeper.rb, line 12
def <<(tunnel)
  @tunnels << tunnel
end
close_tunnels() click to toggle source
# File lib/objects/ssh/tunnel_keeper.rb, line 16
def close_tunnels
  @tunnels.each(&:close!)
end