Class: Pu::Lite::SolidCacheGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Lite::SolidCacheGenerator
- Defined in:
- lib/generators/pu/lite/solid_cache/solid_cache_generator.rb
Instance Method Summary collapse
Methods included from PlutoniumGenerators::Generator
derive_association_name, find_shared_namespace, included
Methods included from PlutoniumGenerators::Concerns::Logger
#debug, #error, #exception, #info, #success, #warn
Methods included from PlutoniumGenerators::Concerns::Config
Instance Method Details
#start ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/generators/pu/lite/solid_cache/solid_cache_generator.rb', line 20 def start @db_name = [:database] bundle "solid_cache" add_sqlite_database(@db_name) run_solid_cache_install configure_cache_yml configure_application prepare_database(@db_name) enable_dev_cache if [:dev_cache] rescue => e exception "#{self.class} failed:", e end |