Hi all,

I've been toying around with this for a little while and find that my
ruby-fu is weak.

In the Puppet language, I can do the following:

if defined(Class["foo"]) { ...do stuff... }

How do I do that in an ERB file?

I.e.

<% if class(foo) then %>do stuff<% end %>

Or, is this impossible?

Thanks,

Trevor

--~--~---------~--~----~------------~-------~--~----~
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