Sha256: b467bd15a04868def2008f7a0e351f770e319b946c243e1b87a22ad82a63aa9b

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

class <%= class_name %>Event < ApplicationEvent
  # Please read the Considerations section before using s3_event
  s3_event "my-bucket" # <= CHANGE ME: new or existing bucket
  def <%= options[:method] %>
    puts "event #{JSON.dump(event)}"
    puts "s3_events #{JSON.dump(s3_events)}"
    puts "s3_objects #{JSON.dump(s3_objects)}"
    # s3_files.each do |file|
    #   puts "file.filename #{file.filename}"
    #   puts "file.content #{file.content}"
    # end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/cli/generate/templates/event_types/s3.rb.tt
jets-6.0.4 lib/jets/cli/generate/templates/event_types/s3.rb.tt
jets-6.0.3 lib/jets/cli/generate/templates/event_types/s3.rb.tt
jets-6.0.2 lib/jets/cli/generate/templates/event_types/s3.rb.tt