Class: Whenever::WebJobList
- Includes:
- Enumerable
- Defined in:
- app/models/whenever/web_job_list.rb
Instance Attribute Summary collapse
-
#job_types ⇒ Object
readonly
Returns the value of attribute job_types.
-
#set_variables ⇒ Object
readonly
Returns the value of attribute set_variables.
Instance Method Summary collapse
Methods inherited from JobList
Instance Attribute Details
#job_types ⇒ Object (readonly)
Returns the value of attribute job_types.
6 7 8 |
# File 'app/models/whenever/web_job_list.rb', line 6 def job_types @job_types end |
#set_variables ⇒ Object (readonly)
Returns the value of attribute set_variables.
6 7 8 |
# File 'app/models/whenever/web_job_list.rb', line 6 def set_variables @set_variables end |
Instance Method Details
#job_type(name, template) ⇒ Object
26 27 28 29 |
# File 'app/models/whenever/web_job_list.rb', line 26 def job_type name, template (@job_types ||= {})[name] = template old_job_type name, template end |
#logs ⇒ Object
20 21 22 |
# File 'app/models/whenever/web_job_list.rb', line 20 def logs @logs ||= fetch_logs(@set_variables[:output]) end |
#old_job_type ⇒ Object
24 |
# File 'app/models/whenever/web_job_list.rb', line 24 alias_method :old_job_type, :job_type |