- From: AJ Christensen <
>
- To: Chef Dev <
>
- Subject: [chef-dev] Re: Re: Re: Re: Re: Re: Re: Re: ::File notation
- Date: Wed, 17 Apr 2013 09:14:40 +1200
I hit reply to all by accident -- sorry guys :(
--AJ
On 17 April 2013 09:04, Daniel DeLeo
<
>
wrote:
>
>
On Tuesday, April 16, 2013 at 1:57 PM, Noah Kantrowitz wrote:
>
>
Now that you mention it, yeah, I think we used to use Chef::Resource as the
>
scope for recipe code but now it runs in its own thang so you might well
>
have a point :)
>
>
--Noah
>
>
The block you pass to a resource is evaluated through instance_eval on the
>
resource object, so the context depends on whether you're inside that block
>
or not.
>
>
I think the biggest pain point is doing something like
>
`File.exist?("/path/thing.ext")` inside a not_if/only_if block, and I
>
believe that's still affected.
>
>
>
--
>
Daniel DeLeo
>
- [chef-dev] RE: Re: Re: Re: Re: ::File notation, (continued)
- [chef-dev] RE: Re: Re: Re: Re: ::File notation, Adam Jacob, 04/17/2013
- [chef-dev] Re: RE: Re: Re: Re: Re: ::File notation, Jay Feldblum, 04/17/2013
- [chef-dev] Re: Re: RE: Re: Re: Re: Re: ::File notation, Jesse Campbell, 04/17/2013
- [chef-dev] RE: Re: Re: RE: Re: Re: Re: Re: ::File notation, Adam Jacob, 04/18/2013
- [chef-dev] Re: RE: Re: Re: RE: Re: Re: Re: Re: ::File notation, Jamie Winsor, 04/18/2013
- [chef-dev] Re: Re: RE: Re: Re: RE: Re: Re: Re: Re: ::File notation, Sascha Bates, 04/18/2013
- Message not available
- [chef-dev] Re: Re: Re: Re: Re: ::File notation, Scott Sanders, 04/16/2013
- [chef-dev] Re: Re: Re: Re: Re: ::File notation, Andrea Campi, 04/16/2013
- [chef-dev] Re: Re: Re: Re: Re: Re: ::File notation, Noah Kantrowitz, 04/16/2013
- [chef-dev] Re: Re: Re: Re: Re: Re: Re: ::File notation, Daniel DeLeo, 04/16/2013
- [chef-dev] Re: Re: Re: Re: Re: Re: Re: Re: ::File notation, AJ Christensen, 04/16/2013
- [chef-dev] Re: Re: Re: Re: Re: Re: ::File notation, Jesse Nelson, 04/16/2013
- [chef-dev] Re: Re: Re: Re: Re: Re: Re: ::File notation, Noah Kantrowitz, 04/16/2013
Archive powered by MHonArc 2.6.16.