Class: Lazylead::Task::Alert
- Inherits:
-
Object
- Object
- Lazylead::Task::Alert
- Defined in:
- lib/lazylead/task/alert.rb
Overview
Notify particular person about tickets based on pre-defined html template.
The task supports the following features:
- fetch issues from remote ticketing system by query
- prepare email based on predefined template (*.erb)
- send the required notifications pre-defined "addressee".
Instance Method Summary collapse
-
#initialize(log = Log::NOTHING) ⇒ Alert
constructor
A new instance of Alert.
- #run(sys, postman, opts) ⇒ Object
Constructor Details
Instance Method Details
#run(sys, postman, opts) ⇒ Object
50 51 52 |
# File 'lib/lazylead/task/alert.rb', line 50 def run(sys, postman, opts) postman.send opts.merge(tickets: sys.issues(opts["sql"])) end |