Re: [Puppet Users] Re: New Type/Provider... How to handle cli input???

2013-02-07 Thread fatmcgav
Justin Cheers for that. Will have a read and see what I can come up with :) Cheers Gav On 7 February 2013 17:32, Justin Stoller wrote: > There's a completely undocumented (outside of the Pickaxe book) Ruby > STDLIB module called 'expect' that you could use in 1.8.7, open up irb and > give it

Re: [Puppet Users] Re: New Type/Provider... How to handle cli input???

2013-02-07 Thread Justin Stoller
There's a completely undocumented (outside of the Pickaxe book) Ruby STDLIB module called 'expect' that you could use in 1.8.7, open up irb and give it a whirl. You can find other expect like gems (or at least crib how they're using the pty)[1]. I think you'll want something like expect4r[2] extend

Re: [Puppet Users] Re: New Type/Provider... How to handle cli input???

2013-02-07 Thread fatmcgav
John Cheers for the response... Unfortunately SnapDrive is not my program - It's a NetApp program, so I'm not going to be able to change it :( Also doesn't look like it's designed to support command line args... :( :( But in principle, it looks like it's possible, but a bit hacky... Cheers Gavi

[Puppet Users] Re: New Type/Provider... How to handle cli input???

2013-02-07 Thread jcbollinger
On Thursday, February 7, 2013 5:12:41 AM UTC-6, Gavin Williams wrote: > > Morning all > > I'm looking at writing a set of types/providers to handle NetApp SnapDrive > configuration and usage... > > There's quite a lot to SnapDrive, so initially, I'm just trying to get it > to manage credential