Method: Blade::Runner#run
- Defined in:
- lib/blade/interface/runner.rb
#run ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/blade/interface/runner.rb', line 41 def run start_screen init_windows handle_keys handle_stale_tabs Blade.subscribe("/results") do |details| session = Blade::Session.find(details[:session_id]) unless tab = Tab.find(session.id) tab = Tab.create(id: session.id) tab.activate if Tab.size == 1 end tab.draw Curses.doupdate end end |