Class: Wicked::PipelineGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/wicked/pipeline/pipeline_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_pipeline_fileObject



13
14
15
# File 'lib/generators/wicked/pipeline/pipeline_generator.rb', line 13

def create_pipeline_file
  template "pipeline.rb", File.join("app/steps", class_path, "#{file_name}_pipeline.rb")
end

#create_step_filesObject



19
20
21
22
23
# File 'lib/generators/wicked/pipeline/pipeline_generator.rb', line 19

def create_step_files
  step_classes.each do |step_class|
    Rails::Generators.invoke "wicked:pipeline:step", [step_class, *options_as_switches], behavior: behavior
  end
end