On 6 August 2010 17:55, Paul Berry <p...@puppetlabs.com> wrote:
> On Fri, Aug 6, 2010 at 2:23 AM, Paul Nasrat <pnas...@gmail.com> wrote:
>>
>> Random thought for 1.6 or later we could have a ProcFile and Sysctl
>> specific class (and dmidecode) to encapsulate the complexities of
>> different platforms/versions so it's easy to do stuff and provides a
>> handy way to prevent repeated calls to the same provider.
>
> +1 to this idea, especially as it serves an educational purpose to
> developers unfamiliar with the subtleties of e.g. reading from the /proc
> filesystem.  If a ProcFile class had existed Rein and I probably wouldn't
> have made the mistake if trying to read proc files directly in the first
> place.

Yeah it makes the knowledge explicit, etc. It's been on my should get
round to for a while, as there are various places we get info from
repeatedly that have hidden complexities.

Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to puppet-...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to