Class: WitBot::Generators::MessageBusGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- WitBot::Generators::MessageBusGenerator
- Defined in:
- lib/generators/wit_bot/message_bus/message_bus_generator.rb
Instance Method Summary collapse
- #create_job ⇒ Object
- #create_message_bus_controller ⇒ Object
- #create_message_bus_listener ⇒ Object
- #install_dependencies ⇒ Object
Instance Method Details
#create_job ⇒ Object
25 26 27 |
# File 'lib/generators/wit_bot/message_bus/message_bus_generator.rb', line 25 def create_job template 'job.rb.erb', 'app/jobs/message_bus_job.rb' end |
#create_message_bus_controller ⇒ Object
21 22 23 |
# File 'lib/generators/wit_bot/message_bus/message_bus_generator.rb', line 21 def template 'message_bus_controller.rb.erb', 'app/controllers/message_bus_controller.rb' end |
#create_message_bus_listener ⇒ Object
17 18 19 |
# File 'lib/generators/wit_bot/message_bus/message_bus_generator.rb', line 17 def template 'message_bus_listener.rb.erb', 'app/wit_bot/message_bus_listener.rb' end |
#install_dependencies ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/generators/wit_bot/message_bus/message_bus_generator.rb', line 9 def install_dependencies gem 'redis', '~> 3' gem 'message_bus', '~> 2.0.0.beta.5' Bundler.with_clean_env do run 'bundle install' end end |