Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 242 Bytes
class CommandJob < ApplicationJob
def execute
command = event['command'] || 'uptime'
sh command
end
def migrate
sh "jets db:migrate"
end
private
def sh(command)
puts "=> #{command}"
puts `#{command}`
end
end
You can’t perform that action at this time.