Sha256: 13f79af6a0bc7c2422c5b682dc9ff4916590798170294bf4a3bbee9a12c54139
Contents?: true
Size: 407 Bytes
Versions: 6
Compression:
Stored size: 407 Bytes
Contents
module Backgroundrb module Generators class WorkerGenerator < Rails::Generators::NamedBase def self.source_root @source_root ||= File.expand_path('../templates', __FILE__) end def copy_backgroundrb_worker template "worker.rb", "lib/workers/#{file_name}_worker.rb" #template "unit_test.rb", "test/unit/#{file_name}_worker_test.rb" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems