Class: Wheneverd::Systemd::Unit
- Inherits:
-
Struct
- Object
- Struct
- Wheneverd::Systemd::Unit
- Defined in:
- lib/wheneverd/systemd/renderer.rb
Overview
A rendered systemd unit (service or timer).
Instance Attribute Summary collapse
-
#activation ⇒ Object
Returns the value of attribute activation.
-
#contents ⇒ String
readonly
Unit file contents.
-
#kind ⇒ Symbol
readonly
:serviceor:timer. -
#path_basename ⇒ String
readonly
File name, e.g.
Instance Attribute Details
#activation ⇒ Object
Returns the value of attribute activation
13 14 15 |
# File 'lib/wheneverd/systemd/renderer.rb', line 13 def activation @activation end |
#contents ⇒ String (readonly)
Returns unit file contents.
13 |
# File 'lib/wheneverd/systemd/renderer.rb', line 13 Unit = Struct.new(:path_basename, :kind, :contents, :activation, keyword_init: true) |
#kind ⇒ Symbol (readonly)
Returns :service or :timer.
13 |
# File 'lib/wheneverd/systemd/renderer.rb', line 13 Unit = Struct.new(:path_basename, :kind, :contents, :activation, keyword_init: true) |
#path_basename ⇒ String (readonly)
Returns file name, e.g. "wheneverd-myapp-0123abcd4567.timer".
13 |
# File 'lib/wheneverd/systemd/renderer.rb', line 13 Unit = Struct.new(:path_basename, :kind, :contents, :activation, keyword_init: true) |