Module: LoomExt::CoreMods::SystemdUnitsCommon
- Included in:
- SystemdSockets, SystemdTimers, SystemdUnits
- Defined in:
- lib/loomext/coremods/systemd/systemd_units.rb
Instance Method Summary collapse
- #common_list_flags ⇒ Object
- #do_systemctl_list(list_what, flags = common_list_flags) ⇒ Object
- #init_action(*units, type: nil) ⇒ Object
Instance Method Details
#common_list_flags ⇒ Object
14 15 16 |
# File 'lib/loomext/coremods/systemd/systemd_units.rb', line 14 def common_list_flags ["--plain", "--full", "--all"] end |
#do_systemctl_list(list_what, flags = common_list_flags) ⇒ Object
10 11 12 |
# File 'lib/loomext/coremods/systemd/systemd_units.rb', line 10 def do_systemctl_list(list_what, flags=common_list_flags) do_systemctl("list-%s" % list_what, flags: flags) end |
#init_action(*units, type: nil) ⇒ Object
5 6 7 8 |
# File 'lib/loomext/coremods/systemd/systemd_units.rb', line 5 def init_action(*units, type: nil) @units = units @type = type end |