8 lines
189 B
Ruby
8 lines
189 B
Ruby
|
class AppVersionRestartJob < ApplicationJob
|
||
|
def perform(cmd)
|
||
|
Rails.logger.info "executing CMD: #{cmd}"
|
||
|
::Kernel.system(cmd)
|
||
|
Rails.logger.info "executed CMD: #{cmd}"
|
||
|
end
|
||
|
end
|