Class: Gitlab::Generators::Experiment::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Gitlab::Generators::Experiment::InstallGenerator
- Defined in:
- lib/generators/gitlab/experiment/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_baseclass ⇒ Object
24 25 26 27 28 |
# File 'lib/generators/gitlab/experiment/install/install_generator.rb', line 24 def create_baseclass return if [:skip_baseclass] template 'application_experiment.rb', 'app/experiments/application_experiment.rb' end |
#create_initializer ⇒ Object
18 19 20 21 22 |
# File 'lib/generators/gitlab/experiment/install/install_generator.rb', line 18 def create_initializer return if [:skip_initializer] template 'initializer.rb', 'config/initializers/gitlab_experiment.rb' end |
#display_post_install ⇒ Object
30 31 32 |
# File 'lib/generators/gitlab/experiment/install/install_generator.rb', line 30 def display_post_install readme 'POST_INSTALL' if behavior == :invoke end |