Class: MonkeyNotificationGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



5
6
7
# File 'lib/generators/monkey_notification_generator.rb', line 5

def self.source_root
  File.expand_path("../../../generators/monkey_notification/templates", __FILE__)
end

Instance Method Details

#installObject



9
10
11
12
# File 'lib/generators/monkey_notification_generator.rb', line 9

def install
  append_capistrano_hook
  generate_initializer if api_url_need_configured?
end