Class: RubyRabbitmqJanus::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RubyRabbitmqJanus::Generators::InstallGenerator
- Defined in:
- lib/generators/ruby_rabbitmq_janus/install_generator.rb
Overview
Create an class for generate a installing
Constant Summary collapse
- APPLICATION =
<<-AUTOLOAD # Load RubyRabbitmqJanus actions events code blocks config.autoload_paths += Dir[Rails.root.join('app', 'ruby_rabbitmq_janus')] AUTOLOAD
Instance Method Summary collapse
-
#add_actions ⇒ Object
Generate files with default code.
Instance Method Details
#add_actions ⇒ Object
Generate files with default code
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/generators/ruby_rabbitmq_janus/install_generator.rb', line 17 def add_actions # Create an class template 'actions.rb', 'app/ruby_rabbitmq_janus/actions.rb' # Add to application.rb application { APPLICATION } # Add initializer generate 'ruby_rabbitmq_janus:initializer' # Copy basic request generate 'ruby_rabbitmq_janus:default_request' end |