Sha256: dcf7c6cef4938b1d0aa095e6d13e07fe1723f6a4f2cd3048e1bc08a3520280bb

Contents?: true

Size: 634 Bytes

Versions: 17

Compression:

Stored size: 634 Bytes

Contents

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

      source_root File.expand_path('../templates', __FILE__)
      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', 'config/initializers/exception_notification.rb'
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
exception_notification-4.3.0 lib/generators/exception_notification/install_generator.rb
exception_notification-4.2.2 lib/generators/exception_notification/install_generator.rb
exception_notification-4.2.1 lib/generators/exception_notification/install_generator.rb
exception_notification-4.2.0 lib/generators/exception_notification/install_generator.rb
exception_notification-4.2.0.rc1 lib/generators/exception_notification/install_generator.rb
exception_notification_more_info-1.0.1 lib/generators/exception_notification/install_generator.rb
exception_notification_more_info-1.0.0 lib/generators/exception_notification/install_generator.rb
exception_notification-4.1.4 lib/generators/exception_notification/install_generator.rb
exception_notification-4.1.3 lib/generators/exception_notification/install_generator.rb
exception_notification-4.1.2 lib/generators/exception_notification/install_generator.rb
exception_notification-4.1.1 lib/generators/exception_notification/install_generator.rb
exception_notification-4.1.0 lib/generators/exception_notification/install_generator.rb
exception_notification-4.1.0.rc2 lib/generators/exception_notification/install_generator.rb
exception_notification-4.1.0.rc1 lib/generators/exception_notification/install_generator.rb
exception_notification-4.0.1 lib/generators/exception_notification/install_generator.rb
exception_notification-4.0.0 lib/generators/exception_notification/install_generator.rb
exception_notification-4.0.0.rc1 lib/generators/exception_notification/install_generator.rb