Hi there,

This is an example of dynamic scoping, and there is a good help document
here --> http://docs.puppetlabs.com/guides/scope_and_puppet.html  That page
should describe what you're seeing and how to clarify it.


On Thu, Dec 6, 2012 at 10:17 AM, phundisk <alex.farh...@currensee.com>wrote:

> I currently have a child class of a parent one.  The parent defines
> some variable that I need to use in the child class.  I am also using
> gepetto.  Gepetto is complaining about the syntax of the child variable.
>  It is saying that "$parentVar" should be "$::parentVar" however, when
> changing to what Gepetto wants to use this breaks my classes.  Does anyone
> know the proper method of doing this?  Currently the "$parentVar" method
> below works fine, its just causing an error with Gepetto.
>
> class test::parent {
> $parentVar = "abc"
> include test::child
> }
>
> class test::child {
> notify { "The variable is: $parentVar":}
> }
>
> ______________________________**_______________________
> This email and any files transmitted with it are confidential and intended
> solely for the addressee.  If you received this email in error, please do
> not disclose the contents to anyone; kindly notify the sender by return
> email and delete this email and any attachments from your system.
>
> © 2011 Currensee Inc. is a member of the National Futures Association
> (NFA) Member ID 0403251 | Over the counter retail foreign currency (Forex)
> trading may involve significant risk of loss. It is not suitable for all
> investors and you should make sure you understand the risks involved before
> trading and seek independent advice if necessary. Performance, strategies
> and charts shown are not necessarily predictive of any particular result
> and past performance is no indication of future results. Investor returns
> may vary from Trade Leader returns based on slippage, fees, broker spreads,
> volatility or other market conditions.
>
> Currensee Inc | 54 Canal St 4th Floor | Boston, MA 02114 | +1.617.624.3824
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/0h82g6XX0FoJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 

Gary Larizza
Professional Services Engineer
Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to