Sha256: b422b072dd4e43e24a138905debba5ea820a3450a1b987fe6a2313714c7f33f3

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

module ExceptionNotification
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc 'Creates a ExceptionNotification initializer.'

      source_root File.expand_path('templates', __dir__)
      class_option :resque, type: :boolean, desc: 'Add support for sending notifications when errors occur in Resque jobs.'
      class_option :sidekiq, type: :boolean, desc: 'Add support for sending notifications when errors occur in Sidekiq jobs.'

      def copy_initializer
        template 'exception_notification.rb.erb', 'config/initializers/exception_notification.rb'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exception_notification-4.4.0 lib/generators/exception_notification/install_generator.rb