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
37 38 39 40 |
# File 'lib/pact/mock_service/cli.rb', line 37 def control require 'pact/mock_service/control_server/run' ControlServer::Run.() end |
#control_restart ⇒ Object
118 119 120 121 122 |
# File 'lib/pact/mock_service/cli.rb', line 118 def control_restart restart_server(control_server_pidfile) do control end end |
#control_start ⇒ Object
95 96 97 98 99 |
# File 'lib/pact/mock_service/cli.rb', line 95 def control_start start_server(control_server_pidfile) do control end end |
#control_stop ⇒ Object
105 106 107 |
# File 'lib/pact/mock_service/cli.rb', line 105 def control_stop control_server_pidfile.kill_process end |
#restart ⇒ Object
80 81 82 83 84 |
# File 'lib/pact/mock_service/cli.rb', line 80 def restart restart_server(mock_service_pidfile) do service end end |
#service ⇒ Object
24 25 26 27 |
# File 'lib/pact/mock_service/cli.rb', line 24 def service require 'pact/mock_service/run' Run.() end |
#start ⇒ Object
54 55 56 57 58 |
# File 'lib/pact/mock_service/cli.rb', line 54 def start start_server(mock_service_pidfile) do service end end |
#stop ⇒ Object
64 65 66 |
# File 'lib/pact/mock_service/cli.rb', line 64 def stop mock_service_pidfile.kill_process end |