Module: ReverseTunnel

Defined in:
lib/reverse-tunnel.rb,
lib/reverse-tunnel/cli.rb,
lib/reverse-tunnel/client.rb,
lib/reverse-tunnel/server.rb,
lib/reverse-tunnel/message.rb,
lib/reverse-tunnel/version.rb

Defined Under Namespace

Classes: CLI, Client, Message, Server

Constant Summary collapse

VERSION =
"0.0.3"
@@logger =
default_logger

Class Method Summary collapse

Class Method Details

.default_loggerObject



7
8
9
10
11
# File 'lib/reverse-tunnel.rb', line 7

def self.default_logger
  Logger.new($stderr).tap do |logger|
    logger.level = Logger::INFO
  end
end

.loggerObject



14
15
16
# File 'lib/reverse-tunnel.rb', line 14

def self.logger
  @@logger
end

.logger=(logger) ⇒ Object



17
18
19
# File 'lib/reverse-tunnel.rb', line 17

def self.logger=(logger)
  @@logger = logger
end

.reset_logger!Object



21
22
23
# File 'lib/reverse-tunnel.rb', line 21

def self.reset_logger!
  @@logger = default_logger
end