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.
991 992 993 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 991 def initialize() @options = end |
Instance Method Details
#notify_finished(success, report) ⇒ Object
1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 1003 def notify_finished(success, report) return unless @options[:mail_to] if success subject = @options[:mail_subject_on_success] return if @options[:mail_only_on_failure] else subject = @options[:mail_subject_on_failure] end send_mail(subject, report) end |
#notify_started ⇒ Object
995 996 997 998 999 1000 1001 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 995 def notify_started return unless @options[:mail_to] return if @options[:mail_only_on_failure] subject = @options[:mail_subject_on_start] send_mail(subject, "") end |