Class: Gitlab::Generators::ExperimentGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/gitlab/experiment/experiment_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_experimentObject



15
16
17
# File 'lib/generators/gitlab/experiment/experiment_generator.rb', line 15

def create_experiment
  template 'experiment.rb', File.join('app/experiments', class_path, "#{file_name}_experiment.rb")
end