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.
968 969 970 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 968 def initialize() @options = end |
Instance Method Details
#notify_finished(success, report) ⇒ Object
980 981 982 983 984 985 986 987 988 989 990 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 980 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
972 973 974 975 976 977 978 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 972 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 |