Sha256: 213cb7b8edc100115844cbd1b04c909e4faa7a547587df6869fb8e48ad835eb0

Contents?: true

Size: 380 Bytes

Versions: 42

Compression:

Stored size: 380 Bytes

Contents

class <%= publisher_name.classify %> < DispatchRider::Publisher::Base

  # TODO: set the correct destination
  destinations [:some_destination]
  subject "<%= handler_name.underscore %>"

  # TODO: accept some custom arguments here
  # @return [<%= handler_name.classify %>]
  def self.publish
    # TODO: pass them to the message as hash arguments
    new.publish({})
  end

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-2.1.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-2.0.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.9.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.8.6 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.8.5 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.8.4 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.8.3 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.8.2 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.8.1 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.8.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.7.2 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.7.1 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.7.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.6.2 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.6.1 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.6.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.5.3 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.5.2 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.5.1 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb