Alex Harvey
unread,Dec 20, 2012, 8:54:16 AM12/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Hi all,
I've sat down to write physicalprocessorcount for HP-UX and found I'd like to call a method machinfo that I've put in util/processor.rb. The processorX and processorcount facts however live in lib/facter/processor.rb whereas physicalprocessorcount lives in lib/facter/physicalprocessorcount.rb and are self-contained.
I could, I suppose, have physicalprocessorcount.rb also require util/processor.rb but it makes more sense to me to have all processor-related facts inside processor.rb and let that continue to require methods in util/processor.rb. Thus it makes sense to me to refactor first and combine physicalprocessorcount.rb and processor.rb in a single file. The latter file, after all, already contains two processor-related facts - why should physicalprocessorcount be special?
However, before I venture too far down this path I guess I should check if anyone objects - so would it be okay if my patch for #17520 includes one commit that refactors as proposed and another that adds the HP-UX physicalprocessorcount fact?
TIA,
Alex