- From: howard chen <
>
- To:
- Subject: [chef] How to execute a command block only if previous block succeed?
- Date: Tue, 21 May 2013 01:22:21 +0800
I have written a custom provider, foo
action :helloworld do
...
end
And in my recipe, I have lines..
foo "bar" do
action : helloworld
end
..
..
execute "bye" do
command "xxx"
action :run
end
How to make my last execute block run only if my custom provider "foo" is executed correctly?
i.e. How to make my helloworld action return success/error status and such that the later block can make use of this value?
Thanks.
- [chef] How to execute a command block only if previous block succeed?, howard chen, 05/20/2013
Archive powered by MHonArc 2.6.16.