Class: CheckTaskr::Cli
- Inherits:
-
Object
- Object
- CheckTaskr::Cli
- Defined in:
- lib/check-taskr/cli.rb
Class Method Summary collapse
Class Method Details
.execute(filename, options = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/check-taskr/cli.rb', line 12 def self.execute(filename, = {}) logdir = .delete(:logdir) # create a logger named 'mylog' that logs to stdout config = CheckTaskr::JobsConfiguration.instance config.load_from_file(filename) t = Thread.new do while true do hash = config.execute_all sleep(config.sleep_time) end end end |