Class: Devproxy::CLI

Inherits:
Connection show all
Defined in:
lib/devproxy/cli.rb

Defined Under Namespace

Classes: Options, Server

Constant Summary

Constants inherited from Connection

Devproxy::Connection::MAX_DOTS

Instance Attribute Summary

Attributes inherited from Connection

#options

Instance Method Summary collapse

Methods inherited from Connection

#on_close, #on_connected, #on_heartbeat, #on_stderr, #on_stdout

Constructor Details

#initialize(*args) ⇒ CLI

Returns a new instance of CLI.



13
14
15
16
# File 'lib/devproxy/cli.rb', line 13

def initialize *args
  super(*args)
  initialize_test_server
end

Instance Method Details

#loop!Object



18
19
20
21
# File 'lib/devproxy/cli.rb', line 18

def loop!
  start_test_server
  super
end

#stop!Object



23
24
25
26
# File 'lib/devproxy/cli.rb', line 23

def stop!
  stop_test_server
  super
end