Class: Wicked::PipelineGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Wicked::PipelineGenerator
- Defined in:
- lib/generators/wicked/pipeline/pipeline_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_pipeline_file ⇒ Object
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_files ⇒ Object
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, *], behavior: behavior end end |