Class: Pu::Lite::SolidCableGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Lite::SolidCableGenerator
- Defined in:
- lib/generators/pu/lite/solid_cable/solid_cable_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
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/generators/pu/lite/solid_cable/solid_cable_generator.rb', line 18 def start @db_name = [:database] bundle "solid_cable" add_sqlite_database(@db_name) run_solid_cable_install configure_cable_yml prepare_database(@db_name) rescue => e exception "#{self.class} failed:", e end |