Class: RailsAppGenerator::AddOns::Honeybadger
- Inherits:
-
RailsAppGenerator::Addon
- Object
- Rails::Generators::Base
- RailsAppGenerator::Addon
- RailsAppGenerator::AddOns::Honeybadger
- Defined in:
- lib/rails_app_generator/addons/honeybadger.rb
Overview
Add Honeybadger to rails application
Instance Attribute Summary
Attributes inherited from RailsAppGenerator::Addon
#context, #dependencies, #gem_entries
Instance Method Summary collapse
Methods inherited from RailsAppGenerator::Addon
addon_name, dependencies, depends_on, gem, gem_entries, #initialize, required_gem, reset_gem_entries
Constructor Details
This class inherits a constructor from RailsAppGenerator::Addon
Instance Method Details
#apply ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rails_app_generator/addons/honeybadger.rb', line 10 def apply run('bundle exec honeybadger install 1111') say 'Update the honeybadger.yml file with your API key.' copy_file('honeybadger.sample.yml', 'config/honeybadger.sample.yml') append_to_file('config/locales/en.yml', read_template('en.yml')) end |