Class: Dbla::Install

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/dbla/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_public_assetsObject

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_helperObject



31
32
33
# File 'lib/generators/dbla/install_generator.rb', line 31

def generate_dbla_helper
  generate 'dbla:helper'
end

#generate_dbla_modelsObject



27
28
29
# File 'lib/generators/dbla/install_generator.rb', line 27

def generate_dbla_models
  generate 'dbla:models'
end

#generate_dbla_routesObject



35
36
37
# File 'lib/generators/dbla/install_generator.rb', line 35

def generate_dbla_routes
  generate 'dbla:routes'
end

#generate_search_builderObject



23
24
25
# File 'lib/generators/dbla/install_generator.rb', line 23

def generate_search_builder
  generate 'dbla:search_builder', search_builder_name
end