Sha256: 09ca1aa00d75580c7eb4b90c20c625e6a11e2dc53dd720c1fcbdd039495a8893
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true module Totoro class WorkerGenerator < Rails::Generators::Base desc 'Generate totoro worker file' source_root File.expand_path('../templates', __FILE__) argument :name, type: :string argument :queue, type: :string, required: false def copy_config_file template 'worker.rb', File.join('app/models/worker', "#{name.underscore}.rb") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
totoro-0.1.5 | lib/generators/totoro/worker_generator.rb |
totoro-0.1.4 | lib/generators/totoro/worker_generator.rb |