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-1.5.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.4.2 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.4.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.3.6 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.3.5 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.3.4 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.3.3 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.3.2 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.3.1 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.3.0 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.11 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.10 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.9 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.8 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.7 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.6 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.5 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.4 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.3 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb
dispatch-rider-1.2.2 lib/generators/dispatch_rider/job/templates/publisher/publisher.rb.erb