Class: Sproxy::CLI
- Inherits:
-
Thor
- Object
- Thor
- Sproxy::CLI
- Defined in:
- lib/sproxy/cli.rb
Instance Method Summary collapse
Instance Method Details
#start(target_addr, target_port) ⇒ Object
7 8 9 10 11 |
# File 'lib/sproxy/cli.rb', line 7 def start(target_addr, target_port) puts "#{[:bind_addr]}:#{[:bind_port]} <-> #{target_addr}:#{target_port}" Sproxy.application_start(target_addr, target_port, [:bind_addr], [:bind_port]) end |