Class: Wheneverd::CLI::Status
- Inherits:
-
Wheneverd::CLI
- Object
- Clamp::Command
- Wheneverd::CLI
- Wheneverd::CLI::Status
- Defined in:
- lib/wheneverd/cli/status.rb
Overview
Implements wheneverd status (show installed timer/service status via systemctl --user).
Instance Method Summary collapse
Methods inherited from Wheneverd::CLI
#handle_error, #identifier_value, #load_schedule
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/wheneverd/cli/status.rb', line 6 def execute timer_units, service_units = installed_unit_basenames units = timer_units + service_units return 0 if units.empty? print_list_timers(timer_units) print_status(units) 0 rescue StandardError => e handle_error(e) end |