Class: GroongaQueryLog::Command::RunRegressionTest::MailNotifier
- Inherits:
-
Object
- Object
- GroongaQueryLog::Command::RunRegressionTest::MailNotifier
- Defined in:
- lib/groonga-query-log/command/run-regression-test.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ MailNotifier
constructor
A new instance of MailNotifier.
- #notify_finished(success, report) ⇒ Object
- #notify_started ⇒ Object
Constructor Details
#initialize(options) ⇒ MailNotifier
Returns a new instance of MailNotifier.
772 773 774 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 772 def initialize() @options = end |
Instance Method Details
#notify_finished(success, report) ⇒ Object
783 784 785 786 787 788 789 790 791 792 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 783 def notify_finished(success, report) return unless @options[:mail_to] if success subject = @options[:mail_subject_on_success] else subject = @options[:mail_subject_on_failure] end send_mail(subject, report) end |
#notify_started ⇒ Object
776 777 778 779 780 781 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 776 def notify_started return unless @options[:mail_to] subject = @options[:mail_subject_on_start] send_mail(subject, "") end |