Class: Ashikawa::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Ashikawa::Generators::InstallGenerator
- Defined in:
- lib/rails/generators/ashikawa/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#inject_ashikawa ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rails/generators/ashikawa/install_generator.rb', line 9 def inject_ashikawa sentinel = /[\w]*config\.assets\.version.*/ db_setup = 'Ashikawa::AR.setup :default, "http://127.0.0.1:8529"' in_root do inject_into_file "config/application.rb", "\n\n #{db_setup}", { :after => sentinel, :verbose => true} end end |