composable_operations
composable_operations copied to clipboard
Add a skip state to skip processes when they don't apply to the pipeline
Hi,
I think that fail and halt help when we need to apply all the operations, but sometimes we could skip a operation.
I'm just doing an if in the execute method to not run anything, but it would be nice if I could do something like:
before do
skip "no need to run it" if !params["config_value"]
end
I can provide the code, just need to make sure it's useful for the composable_operations gem.
thanks man!
It certainly wouldn't hurt, but I would call the method succeed so it resembles the name of the state. If you open up a PR, I'll merge it.