Class: Wheneverd::Systemd::Unit

Inherits:
Struct
  • Object
show all
Defined in:
lib/wheneverd/systemd/renderer.rb

Overview

A rendered systemd unit (service or timer).

Instance Attribute Summary collapse

Instance Attribute Details

#activationObject

Returns the value of attribute activation

Returns:

  • (Object)

    the current value of activation



13
14
15
# File 'lib/wheneverd/systemd/renderer.rb', line 13

def activation
  @activation
end

#contentsString (readonly)

Returns unit file contents.

Returns:

  • (String)

    unit file contents



13
# File 'lib/wheneverd/systemd/renderer.rb', line 13

Unit = Struct.new(:path_basename, :kind, :contents, :activation, keyword_init: true)

#kindSymbol (readonly)

Returns :service or :timer.

Returns:

  • (Symbol)

    :service or :timer



13
# File 'lib/wheneverd/systemd/renderer.rb', line 13

Unit = Struct.new(:path_basename, :kind, :contents, :activation, keyword_init: true)

#path_basenameString (readonly)

Returns file name, e.g. "wheneverd-myapp-0123abcd4567.timer".

Returns:

  • (String)

    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)