Sha256: 264295007d1a6ca52ad3c1ef9cd847a6a38f7ece1c4064c1aed0c2e350b2f841

Contents?: true

Size: 300 Bytes

Versions: 30

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

module Worker
  class <%= name.camelcase %> < Totoro::BaseWorker
    setup queue_name: '<%= queue || name.underscore %>'<% if prefix.present? %> ,prefix: :<%= prefix %><% end %>
    def process(payload, metadata, delivery_info)
      # worker process
    end
  end
end

Version data entries

30 entries across 29 versions & 1 rubygems

Version Path
totoro-1.0.7 lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.6 pkg/totoro-1.0.5/lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.6 lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.5 lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.4 lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.3 lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.2 lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.1 lib/generators/totoro/templates/worker.rb.erb
totoro-1.0.0 lib/generators/totoro/templates/worker.rb.erb
totoro-0.6.1 lib/generators/totoro/templates/worker.rb.erb
totoro-0.6.0 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.7 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.6 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.5 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.4 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.3 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.2 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.1 lib/generators/totoro/templates/worker.rb.erb
totoro-0.5.0 lib/generators/totoro/templates/worker.rb.erb
totoro-0.4.1 lib/generators/totoro/templates/worker.rb.erb