class Platforms::Yammer::InstallGenerator

Simplify the installation of Platforms::Yammer by creating an initializer file and installing the migrations. This does not run the migrations. @author Benjamin Elias @since 0.1.0

Public Instance Methods

copy_initializer_file() click to toggle source

Create config/initializers/platforms_yammer.rb according to the template.

# 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() click to toggle source

Install Platforms::Core. This uses the built in Rails generate method to call the other gem's installer.

# File lib/generators/platforms/yammer/install/install_generator.rb, line 23
def install_core
  generate "platforms:core:install"
end