Class: Gitlab::Generators::Experiment::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_baseclassObject



24
25
26
27
28
# File 'lib/generators/gitlab/experiment/install/install_generator.rb', line 24

def create_baseclass
  return if options[:skip_baseclass]

  template 'application_experiment.rb', 'app/experiments/application_experiment.rb'
end

#create_initializerObject



18
19
20
21
22
# File 'lib/generators/gitlab/experiment/install/install_generator.rb', line 18

def create_initializer
  return if options[:skip_initializer]

  template 'initializer.rb', 'config/initializers/gitlab_experiment.rb'
end

#display_post_installObject



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