- From: Daniel DeLeo <
>
- To: Noah Kantrowitz <
>
- Cc: Andrea Campi <
>, Scott Sanders <
>, Akzhan Abdulin <
>, Mike <
>, Avishai Ish-Shalom <
>, Chef Dev <
>
- Subject: [chef-dev] Re: Re: Re: Re: Re: Re: Re: ::File notation
- Date: Tue, 16 Apr 2013 14:04:41 -0700
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: ::File notation, (continued)
- [chef-dev] Re: Re: Re: Re: ::File notation, Akzhan Abdulin, 04/17/2013
- [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.