Class: LogicalConstruct::SSHTunnel::CreateTunnel

Inherits:
Mattock::Rake::CommandTask
  • Object
show all
Defined in:
lib/logical-construct/protocol/ssh-tunnel.rb

Instance Method Summary collapse

Instance Method Details

#commandObject



60
61
62
# File 'lib/logical-construct/protocol/ssh-tunnel.rb', line 60

def command
  cmd("ssh", "-O", "forward", "-L", "localhost:#{local_target_port}:localhost:#{remote_target_port}", target_address)
end