/usr/share/backgroundrb/generators/worker/templates/worker.rb is in libbackgroundrb-ruby1.8 1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 | class <%= class_name %>Worker < BackgrounDRb::MetaWorker
set_worker_name :<%= file_name %>_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
end
end
|