Module: Tunneler

Defined in:
lib/tunneler.rb,
lib/tunneler/cli.rb,
lib/tunneler/ssh.rb,
lib/tunneler/config.rb,
lib/tunneler/logger.rb,
lib/tunneler/version.rb,
lib/tunneler/ssh_tunnel.rb

Defined Under Namespace

Classes: CommandLine, Config, Logger, Ssh, SshTunnel

Constant Summary collapse

APPLICATION_ROOT =
File.expand_path("..",File.dirname(__FILE__))
DEFAULT_SSH_USER =
ENV['USER']
DEFAULT_SSH_KEY_PATH =
"#{ENV['HOME']}/.ssh/id_rsa"
DEFAULT_LOCAL_TUNNEL_PORT =
9997
VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.debugObject



11
12
13
# File 'lib/tunneler.rb', line 11

def self.debug
  Config.instance.debug
end

.debug=(boolean) ⇒ Object



15
16
17
18
# File 'lib/tunneler.rb', line 15

def self.debug=(boolean)
  require "debugger" if boolean
  Config.instance.debug = boolean
end

.log(message, level = :info) ⇒ Object



20
21
22
# File 'lib/tunneler.rb', line 20

def self.log(message, level=:info)
  Logger.log(message, level)
end