Class: Avm::EacRailsBase1::Instances::Runners::TasksScheduler::SystemdUnit

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb

Constant Summary collapse

DEFAULT_RESTART =
'on-failure'

Instance Method Summary collapse

Instance Method Details

#runObject



24
25
26
27
28
29
30
# File 'lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb', line 24

def run
  if result.error?
    fatal_error result.to_s
  else
    infov 'Result', result.label
  end
end