Class: Pact::MockService::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pact::MockService::CLI
- Defined in:
- lib/pact/mock_service/cli.rb,
lib/pact/mock_service/cli/pidfile.rb
Defined Under Namespace
Classes: Pidfile
Instance Method Summary collapse
- #control ⇒ Object
- #control_restart ⇒ Object
- #control_start ⇒ Object
- #control_stop ⇒ Object
- #restart ⇒ Object
- #service ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Instance Method Details
#control ⇒ Object
36 37 38 39 |
# File 'lib/pact/mock_service/cli.rb', line 36 def control require 'pact/mock_service/control_server/run' ControlServer::Run.() end |
#control_restart ⇒ Object
115 116 117 118 119 |
# File 'lib/pact/mock_service/cli.rb', line 115 def control_restart restart_server(control_server_pidfile) do control end end |
#control_start ⇒ Object
92 93 94 95 96 |
# File 'lib/pact/mock_service/cli.rb', line 92 def control_start start_server(control_server_pidfile) do control end end |
#control_stop ⇒ Object
102 103 104 |
# File 'lib/pact/mock_service/cli.rb', line 102 def control_stop control_server_pidfile.kill_process end |
#restart ⇒ Object
77 78 79 80 81 |
# File 'lib/pact/mock_service/cli.rb', line 77 def restart restart_server(mock_service_pidfile) do service end end |
#service ⇒ Object
23 24 25 26 |
# File 'lib/pact/mock_service/cli.rb', line 23 def service require 'pact/mock_service/run' Run.() end |
#start ⇒ Object
52 53 54 55 56 |
# File 'lib/pact/mock_service/cli.rb', line 52 def start start_server(mock_service_pidfile) do service end end |
#stop ⇒ Object
62 63 64 |
# File 'lib/pact/mock_service/cli.rb', line 62 def stop mock_service_pidfile.kill_process end |