Octo (experimental)
It’s a step type which helps to implement strategy pattern.
Signature
octo(octo_name, (ctx_key:|method:), **step_options) do
# Octo block
on(octo_key, step_to_perform=nil, **step_options, &block)
end
Behavior
- Octo executes different flows depending on specified value.
- You have two options to set value for octo. By ctx_key and method.
ctx_keyandmethodoptions are controversial, so you can use only one of them.- with
ctx_keyyou can specify the key inside action context - with
methodyou can specify method name symbol, which will be called to retrieveocto_keyvalue. - step options from
ondefinition will override options fromoctostep options