Class: ActiveLrs::InstallGenerator

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

Overview

Rails generator to install the ActiveLrs configuration file.

This generator copies the remote_lrs.yml template into the Rails application’s config directory so that remote LRS endpoints can be configured.

Examples:

Run the generator from the Rails app root

rails generate active_lrs:install

Instance Method Summary collapse

Instance Method Details

#copy_configvoid

This method returns an undefined value.

Copies the remote_lrs.yml template to the application’s config folder



21
22
23
# File 'lib/generators/active_lrs/install/install_generator.rb', line 21

def copy_config
  template "remote_lrs.yml", "config/remote_lrs.yml"
end