Pipeline execute

Pokotarou can run by pipeline.
Pokotarou.pipleine_execute means that continuous execution of Pokotarou.make.
You can set filepath, change_data, args parameter.

Pokotarou.pipeline_execute([{
    filepath: "./yml_filepath", 
    change_data: { Default: { Pref: { name: ["a", "b", "c"] } } },
    args: { created_at: [DateTime.now] }
  },{
    filepath: "./yml_filepath", 
  }])

return val created in the previous step can get by args[:passed_return_val] in the next step.

# First step
Default:
  Pref: 
    loop: 3
    col:
      name: ["a", "b", "c"]

return': <["hoge", "fuga", "piyo"]>
# Second step
Default:
  Pref: 
    loop: 3
    col:
      name: <args[:passed_return_val]>
Pokotarou.pipeline_execute([{
    filepath: "./first_step_yml_filepath", 
  },{
    filepath: "./second_step_yml_filepath", 
  }])

Result

Pref.pluck(:name) => ["a", "b", "c", "hoge", "fuga", "piyo"]