Class: Dbla::Install
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Dbla::Install
- Defined in:
- lib/generators/dbla/install_generator.rb
Instance Method Summary collapse
-
#copy_public_assets ⇒ Object
Copy all files in templates/public/ directory to public/ Call external generator in AssetsGenerator, so we can leave that callable seperately too.
- #generate_dbla_helper ⇒ Object
- #generate_dbla_models ⇒ Object
- #generate_dbla_routes ⇒ Object
- #generate_search_builder ⇒ Object
Instance Method Details
#copy_public_assets ⇒ Object
Copy all files in templates/public/ directory to public/ Call external generator in AssetsGenerator, so we can leave that callable seperately too.
19 20 21 |
# File 'lib/generators/dbla/install_generator.rb', line 19 def copy_public_assets generate "dbla:assets" end |
#generate_dbla_helper ⇒ Object
31 32 33 |
# File 'lib/generators/dbla/install_generator.rb', line 31 def generate_dbla_helper generate 'dbla:helper' end |
#generate_dbla_models ⇒ Object
27 28 29 |
# File 'lib/generators/dbla/install_generator.rb', line 27 def generate_dbla_models generate 'dbla:models' end |
#generate_dbla_routes ⇒ Object
35 36 37 |
# File 'lib/generators/dbla/install_generator.rb', line 35 def generate_dbla_routes generate 'dbla:routes' end |
#generate_search_builder ⇒ Object
23 24 25 |
# File 'lib/generators/dbla/install_generator.rb', line 23 def generate_search_builder generate 'dbla:search_builder', search_builder_name end |