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
110 111 112 |
# File 'lib/working_set_cli.rb', line 110 def self.enable_live_watch! supervise type: LiveUpdaterActor, as: :live_updater end |
Instance Method Details
#clean_up_ncurses ⇒ Object
122 123 124 125 126 127 128 |
# File 'lib/working_set_cli.rb', line 122 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
117 118 119 120 |
# File 'lib/working_set_cli.rb', line 117 def do_shutdown shutdown terminate end |