Class: Whenever::WebJobList
- Defined in:
- app/models/whenever/web_job_list.rb
Instance Attribute Summary collapse
-
#set_variables ⇒ Object
readonly
Returns the value of attribute set_variables.
Instance Method Summary collapse
Methods inherited from JobList
Instance Attribute Details
#set_variables ⇒ Object (readonly)
Returns the value of attribute set_variables.
5 6 7 |
# File 'app/models/whenever/web_job_list.rb', line 5 def set_variables @set_variables end |
Instance Method Details
#error_log ⇒ Object
15 16 17 |
# File 'app/models/whenever/web_job_list.rb', line 15 def error_log File.read(set_variables[:output][:error]) end |
#standard_log ⇒ Object
19 20 21 |
# File 'app/models/whenever/web_job_list.rb', line 19 def standard_log File.read(set_variables[:output][:standard]) end |
#web_jobs ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/models/whenever/web_job_list.rb', line 7 def web_jobs @jobs.flat_map do |interval, jobs| jobs.map do |job| WebJob.new(job, interval) end end end |