ref: master
plugins/spaminator/lib/spaminator_plugin/scan_job.rb
1 2 3 4 5
class SpaminatorPlugin::ScanJob < Struct.new(:environment_id) def perform fork {system("ruby #{File.join(SpaminatorPlugin.root_path, 'script', 'scan')} #{environment_id}") } end end