Class: ErrorappNotifierGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/errorapp_notifier/errorapp_notifier_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/generators/errorapp_notifier/errorapp_notifier_generator.rb', line 9

def self.source_root
  @_errorapp_source_root ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#installObject



13
14
15
16
17
# File 'lib/generators/errorapp_notifier/errorapp_notifier_generator.rb', line 13

def install
  ensure_api_key_was_configured
  generate_initializer unless api_key_configured?
  test_errorapp
end