Class: WebhookInbox::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- WebhookInbox::Generators::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/webhook_inbox/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_initializer ⇒ Object
20 21 22 |
# File 'lib/generators/webhook_inbox/install/install_generator.rb', line 20 def create_initializer template "initializer.rb", "config/initializers/webhook_inbox.rb" end |
#create_migration ⇒ Object
15 16 17 18 |
# File 'lib/generators/webhook_inbox/install/install_generator.rb', line 15 def create_migration migration_template "create_webhook_inbox_events.rb.erb", "db/migrate/create_webhook_inbox_events.rb" end |
#show_readme ⇒ Object
24 25 26 |
# File 'lib/generators/webhook_inbox/install/install_generator.rb', line 24 def show_readme readme "README" if behavior == :invoke end |