Sha256: 1a90e20fd0334919d7c72d27e9894741cf1a6369421b8727d93e527e3fc961f1
Contents?: true
Size: 729 Bytes
Versions: 3
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems