I'd like to define an FFI feature in a module so it can die gracefully on 
older puppets, but the question I have is this: Is it better to

A) create a feature at 'puppet/feature/ffi.rb' and  do something like:

Puppet.features.add(:ffi, :libs => ['ffi'])

B) create a feature at 'puppet/feature/my_module.rb' and then: 
Puppet.features.add(:my_module, :libs => ['ffi'])

It looks like if two modules have a feature file with the same name, 
whichever one pluginsyncs first wins.

Poking through modules on the forge, it looks like features are not used 
terribly often, and it seems unlikely that someone would create a file 
'ffi.rb' and then fill it with something other than an :ffi feature, but it 
*is* a shared namespace, so I'm curious to know if anyone has any 
experience that suggests a particular way.

Thanks,
Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/fb3c84ca-1bab-4476-9065-35f820b8d19d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to