Class: Whatsapp::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Whatsapp::Generators::InstallGenerator
- Defined in:
- lib/generators/whatsapp/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_initializer ⇒ Object
10 11 12 |
# File 'lib/generators/whatsapp/install/install_generator.rb', line 10 def create_initializer template "initializer.rb.tt", "config/initializers/whatsapp.rb" end |
#create_send_job ⇒ Object
14 15 16 |
# File 'lib/generators/whatsapp/install/install_generator.rb', line 14 def create_send_job template "send_job.rb.tt", "app/jobs/whatsapp_send_job.rb" end |
#show_post_install ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/generators/whatsapp/install/install_generator.rb', line 18 def show_post_install say "" say "whatsapp-ruby installed!", :green say "" say "Next steps:" say " 1. Edit config/initializers/whatsapp.rb" say " 2. Add `has_whatsapp :phone` to your model" say " 3. Run your app and scan the QR code on first connection" say "" end |