Class: WorkingSetCli::AppSupervisor
- Inherits:
-
Celluloid::Supervision::Container
- Object
- Celluloid::Supervision::Container
- WorkingSetCli::AppSupervisor
- Defined in:
- lib/working_set_cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #clean_up_ncurses ⇒ Object
-
#do_shutdown ⇒ Object
It seems exiting cleanly requires: - shutdown: to kill the supervised actors - terminate: to kill the supervisor itself.
Class Method Details
.enable_live_watch! ⇒ Object
109 110 111 |
# File 'lib/working_set_cli.rb', line 109 def self.enable_live_watch! supervise type: LiveUpdaterActor, as: :live_updater end |
Instance Method Details
#clean_up_ncurses ⇒ Object
121 122 123 124 125 126 127 |
# File 'lib/working_set_cli.rb', line 121 def clean_up_ncurses "cleaning up Ncurses" Ncurses.echo Ncurses.nocbreak Ncurses.nl Ncurses.endwin end |
#do_shutdown ⇒ Object
It seems exiting cleanly requires:
- shutdown: to kill the supervised actors
- terminate: to kill the supervisor itself
116 117 118 119 |
# File 'lib/working_set_cli.rb', line 116 def do_shutdown shutdown terminate end |