Class: Platforms::Yammer::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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.

Author:

  • Benjamin Elias

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject

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

Since:

  • 0.1.0



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_coreObject

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

Since:

  • 0.1.0



23
24
25
# File 'lib/generators/platforms/yammer/install/install_generator.rb', line 23

def install_core
  generate "platforms:core:install"
end