Inheritance of classes in Ruby DSL

106 vues
Accéder directement au premier message non lu

alxrem

non lue,
15 mai 2012, 04:16:2215/05/2012
à puppet...@googlegroups.com
Hello.

Is it possible to describe inheritance of classes in Ruby DSL?

Ingo Fischer

non lue,
13 juin 2012, 11:08:0713/06/2012
à puppet...@googlegroups.com
I have the same question (see https://groups.google.com/forum/?fromgroups#!searchin/puppet-users/inheritance$20ruby$20dsl/puppet-users/RtMbu8yFZCc/Zet8ackZgnYJ) and need this behavior for my project.

Is inheritance possible at all with the Ruby DSL? If not, should we create an issue for that?

Ryan Bowlby

non lue,
16 févr. 2013, 18:42:0516/02/2013
à puppet...@googlegroups.com
...Bueller

Anyone have an answer for this? This seems like a pretty pertinent feature for anyone looking to take advantage of the ruby DSL. I for one would be eternally grateful.

-Ryan

Ingo Fischer

non lue,
18 févr. 2013, 04:42:3418/02/2013
à puppet...@googlegroups.com

jcbollinger

non lue,
18 févr. 2013, 09:24:0818/02/2013
à puppet...@googlegroups.com


On Saturday, February 16, 2013 5:42:05 PM UTC-6, Ryan Bowlby wrote:
...Bueller

Anyone have an answer for this? This seems like a pretty pertinent feature for anyone looking to take advantage of the ruby DSL. I for one would be eternally grateful.



As Ingo Fischer observed, Puppet's current Ruby DSL is deprecated.  I think I remember reading that PL's effort to create a replacement has been abandoned.  As such, I would not advise basing any work on Ruby DSL.

Although the Ruby DSL provided direct access to Ruby for defining manifests, there were always features of Puppet's native DSL that the Ruby DSL did not provide.  In any case, class inheritance is a rather special-purpose tool in Puppet (as was Ruby DSL), so although you may have a good use case for it yourself, I don't think it's accurate to call inheritance "a pretty pertinent feature for anyone looking to take advantage of the ruby DSL."

If you tell us about what you're trying to do then perhaps we can suggest an alternative.


John

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message