Class: Cms::InstallGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Cms::InstallGenerator
- Defined in:
- lib/generators/cms/install/install_generator.rb
Overview
A generic generator for installing BrowserCMS modules into a project. This will do the following:
-
Add the Gem to your Gemfile
-
Call the name_of_module:install generator for that gem.
Instance Method Summary collapse
Instance Method Details
#add_and_install_module ⇒ Object
10 11 12 13 |
# File 'lib/generators/cms/install/install_generator.rb', line 10 def add_and_install_module gem name generate("#{name}:install") end |