Module: LoomExt::CoreMods::SystemdUnits::Actions

Defined in:
lib/loomext/coremods/systemd/systemd_units.rb

Instance Method Summary collapse

Instance Method Details

#listObject



26
27
28
# File 'lib/loomext/coremods/systemd/systemd_units.rb', line 26

def list
  do_systemctl_list :units
end

#statusObject



30
31
32
33
34
# File 'lib/loomext/coremods/systemd/systemd_units.rb', line 30

def status
  @units.map do |unit|
    do_systemctl "status", unit, flags: ["--output=short-unix"]
  end
end