L
Larry Fast
What I find myself writing in Rake is the following:
task xyz => ['abc?'] do
enc
# test before proceeding
task abc? do
if !abc
exit
end
end
What I'm creating is failable dependencies. XYZ should not be executed
unless abc succeeds. Unfortunately the structure I've shown stops on
the first failure. What I'd like to do is report all failures but only
execute if everything passes.
This could be implemented by processing prerequisites until a prereq
returns false. Any task containing any false prereqs would not be
processed.
Does this exist anywhere?
Thanks,
Larry Fast
task xyz => ['abc?'] do
enc
# test before proceeding
task abc? do
if !abc
exit
end
end
What I'm creating is failable dependencies. XYZ should not be executed
unless abc succeeds. Unfortunately the structure I've shown stops on
the first failure. What I'd like to do is report all failures but only
execute if everything passes.
This could be implemented by processing prerequisites until a prereq
returns false. Any task containing any false prereqs would not be
processed.
Does this exist anywhere?
Thanks,
Larry Fast