Class: ActiveAgent::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveAgent::Generators::InstallGenerator
- Defined in:
- lib/generators/active_agent/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_application_agent ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/generators/active_agent/install/install_generator.rb', line 14 def create_application_agent in_root do if !File.exist?(application_agent_file_name) template "application_agent.rb", application_agent_file_name end end end |
#create_configuration ⇒ Object
10 11 12 |
# File 'lib/generators/active_agent/install/install_generator.rb', line 10 def create_configuration template "active_agent.yml", "config/active_agent.yml" unless [:skip_config] end |