Class: ActiveLrs::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveLrs::InstallGenerator
- 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.
Instance Method Summary collapse
-
#copy_config ⇒ void
Copies the
remote_lrs.ymltemplate to the application’s config folder.
Instance Method Details
#copy_config ⇒ void
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 |