Class: Eastrails::Components::ExceptionNotifier

Inherits:
Base
  • Object
show all
Defined in:
lib/eastrails/components/exception_notifier.rb

Instance Method Summary collapse

Methods inherited from Base

#component_installed?, #dir_html_to_haml, #do_if_installed, #file_html_to_haml, #gems, #html_to_haml, #parse_gemfile

Methods inherited from Generator

#initialize

Constructor Details

This class inherits a constructor from Eastrails::Generator

Instance Method Details

#addObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/eastrails/components/exception_notifier.rb', line 4

def add
  gem "exception_notification", :require => "exception_notifier"
  inject_into_file "config/environments/production.rb", :after => "::Application.configure do\n" do <<-RUBY
  config.middleware.use ExceptionNotifier,
    :email_prefix => "[Exception] ",
    :sender_address => %{"Exception Notifier" <[email protected]>},
    :exception_recipients => %w{[email protected]}
  RUBY
  end
end