Class: Platforms::Yammer::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Platforms::Yammer::InstallGenerator
- Defined in:
- lib/generators/platforms/yammer/install/install_generator.rb
Overview
Simplify the installation of Platforms::Yammer by creating an initializer file and installing the migrations. This does not run the migrations.
Instance Method Summary collapse
-
#copy_initializer_file ⇒ Object
Create config/initializers/platforms_yammer.rb according to the template.
-
#install_core ⇒ Object
Install Platforms::Core.
Instance Method Details
#copy_initializer_file ⇒ Object
Create config/initializers/platforms_yammer.rb according to the template.
16 17 18 |
# File 'lib/generators/platforms/yammer/install/install_generator.rb', line 16 def copy_initializer_file copy_file "platforms_yammer.rb", "config/initializers/platforms_yammer.rb" end |
#install_core ⇒ Object
Install Platforms::Core. This uses the built in Rails generate method to call the other gem’s installer.
23 24 25 |
# File 'lib/generators/platforms/yammer/install/install_generator.rb', line 23 def install_core generate "platforms:core:install" end |