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_key
andmethod
options are controversial, so you can use only one of them.- with
ctx_key
you can specify the key inside action context - with
method
you can specify method name symbol, which will be called to retrieveocto_key
value. - step options from
on
definition will override options fromocto
step options