[chef] Re: Re: graceful failure


Chronological Thread 
  • From: Noah Kantrowitz < >
  • To:
  • Subject: [chef] Re: Re: graceful failure
  • Date: Wed, 5 Feb 2014 14:42:46 -0800

Thats the same thing under the hood, so either is fine :-)

--Noah

On Feb 5, 2014, at 2:41 PM, Josiah Kiehl 
< >
 wrote:

> I prefer:
> 
> Chef::Log.fatal!("Some message", 1) unless condition
> 
> 
> On Wed, Feb 5, 2014 at 2:37 PM, James Kessler 
> < >
>  wrote:
> Hi,
> 
> What's the best way to gracefully fail a recipe? Currently I'm doing 
> something like "raise 'some error' unless foo"
> 
> Thanks,
> -James
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§