Module: Wheneverd::Trigger::Base
Overview
Base module for trigger types.
All trigger types must implement:
#systemd_timer_lines- returns Arrayof systemd [Timer] lines #signature- returns a String signature for stable unit naming
Instance Method Summary collapse
-
#signature ⇒ String
Stable signature for unit naming.
-
#systemd_timer_lines ⇒ Array<String>
Systemd
[Timer]lines for this trigger.
Instance Method Details
#signature ⇒ String
Returns stable signature for unit naming.
17 18 19 |
# File 'lib/wheneverd/trigger/base.rb', line 17 def signature raise NotImplementedError, "#{self.class} must implement #signature" end |
#systemd_timer_lines ⇒ Array<String>
Returns systemd [Timer] lines for this trigger.
12 13 14 |
# File 'lib/wheneverd/trigger/base.rb', line 12 def systemd_timer_lines raise NotImplementedError, "#{self.class} must implement #systemd_timer_lines" end |