Class: Boring::Honeybadger::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/boring/honeybadger/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_honeybadger_gemObject



12
13
14
15
16
17
18
# File 'lib/generators/boring/honeybadger/install/install_generator.rb', line 12

def add_honeybadger_gem
  say 'Adding Honeybadger gem', :green

  Bundler.with_unbundled_env do
    run 'bundle add honeybadger'
  end
end

#configure_honeybadger_gemObject



20
21
22
23
24
25
26
27
28
# File 'lib/generators/boring/honeybadger/install/install_generator.rb', line 20

def configure_honeybadger_gem
  say 'Setting up Honeybadger', :green

  @api_key = honeybadger_api_key

  template 'honeybadger.yml', 'config/honeybadger.yml'

  show_readme
end