composable_operations icon indicating copy to clipboard operation
composable_operations copied to clipboard

Add a skip state to skip processes when they don't apply to the pipeline

Open azisaka opened this issue 11 years ago • 1 comments

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!

azisaka avatar May 04 '14 02:05 azisaka

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.

t6d avatar May 25 '14 09:05 t6d