app_version_restart_job.rb 167 B

12345678910
  1. class Observer::AppVersionRestartJob
  2. def initialize(cmd)
  3. @cmd = cmd
  4. end
  5. def perform
  6. system(@cmd)
  7. Rails.logger.info "execute CMD: #{@cmd}"
  8. end
  9. end