class DaFunk::Engine
Public Class Methods
app_loop(&block)
click to toggle source
# File lib/da_funk/engine.rb, line 13 def self.app_loop(&block) @stop = false loop do self.check break if @stop block.call end ThreadScheduler.stop end
check()
click to toggle source
# File lib/da_funk/engine.rb, line 3 def self.check if Device::Setting.boot == '1' DaFunk::EventListener.check(:file_exists) #to check if system update is in progress Device::Setting.boot = '0' else DaFunk::EventListener.check ThreadScheduler.keep_alive end end
stop!(reload = false)
click to toggle source
# File lib/da_funk/engine.rb, line 23 def self.stop!(reload = false) Device::Runtime.reload if reload @stop = true end