[Puppet Users] Method across providers for the same type

2012-07-17 Thread ZJE
I'd like to reuse the same ruby code in a type across all the providers. For the type I'm writing, a certain portion of the "exists?" method would be repeated across all providers. From looking at the documentation, http://docs.puppetlabs.com/guides/custom_types.html, it's not quite clear how I

Re: [Puppet Users] Method across providers for the same type

2012-07-17 Thread Nan Liu
On Tue, Jul 17, 2012 at 8:34 AM, ZJE wrote: > I'd like to reuse the same ruby code in a type across all the providers. For > the type I'm writing, a certain portion of the "exists?" method would be > repeated across all providers. From looking at the documentation, > http://docs.puppetlabs.com/gui

Re: [Puppet Users] Method across providers for the same type

2012-07-17 Thread Jeff McCune
On Tue, Jul 17, 2012 at 9:49 AM, Nan Liu wrote: > On Tue, Jul 17, 2012 at 8:34 AM, ZJE wrote: > > I'd like to reuse the same ruby code in a type across all the providers. > For > > the type I'm writing, a certain portion of the "exists?" method would be > > repeated across all providers. From lo

Re: [Puppet Users] Method across providers for the same type

2012-07-17 Thread ZJE
On Tuesday, July 17, 2012 12:29:52 PM UTC-5, Jeff McCune wrote: > > On Tue, Jul 17, 2012 at 9:49 AM, Nan Liu <> wrote: > >> On Tue, Jul 17, 2012 at 8:34 AM, ZJE <> wrote: >> > I'd like to reuse the same ruby code in a type across all the >> providers. For >> > the type I'm writing, a certain port

Re: [Puppet Users] Method across providers for the same type

2012-07-17 Thread ZJE
On Tuesday, July 17, 2012 2:02:10 PM UTC-5, ZJE wrote: > > > On Tuesday, July 17, 2012 12:29:52 PM UTC-5, Jeff McCune wrote: >> >> On Tue, Jul 17, 2012 at 9:49 AM, Nan Liu <> wrote: >> >>> On Tue, Jul 17, 2012 at 8:34 AM, ZJE <> wrote: >>> > I'd like to reuse the same ruby code in a type across al

Re: [Puppet Users] Method across providers for the same type

2012-07-24 Thread ZJE
On Tuesday, July 17, 2012 2:29:55 PM UTC-5, ZJE wrote: > > > On Tuesday, July 17, 2012 2:02:10 PM UTC-5, ZJE wrote: >> >> >> On Tuesday, July 17, 2012 12:29:52 PM UTC-5, Jeff McCune wrote: >>> >>> On Tue, Jul 17, 2012 at 9:49 AM, Nan Liu <> wrote: >>> On Tue, Jul 17, 2012 at 8:34 AM, ZJE <>

Re: [Puppet Users] Method across providers for the same type

2012-07-25 Thread Jeff McCune
On Tue, Jul 24, 2012 at 9:54 AM, ZJE wrote: > I'm still a little confused - is there an example of a type/provider where > this is done correctly? > Thanks! > Not that I know of. You could be the first! =) What's confusing you? As a basic example, here is the initial change set that migrates

Re: [Puppet Users] Method across providers for the same type

2012-07-25 Thread ZJE
On Wednesday, July 25, 2012 9:57:20 AM UTC-5, Jeff McCune wrote: > > On Tue, Jul 24, 2012 at 9:54 AM, ZJE wrote: > >> I'm still a little confused - is there an example of a type/provider >> where this is done correctly? >> Thanks! >> > > Not that I know of. You could be the first! =) > > What's