summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Config.pm
AgeCommit message (Collapse)Author
2009-02-04Vyatta::Config - exists simplificationStephen Hemminger
No need for if (-d node) { return ... can just use use return ( -d node )
2009-02-04Vyatta::Config - don't use global handle for opendirStephen Hemminger
Global file handles are trap waiting to happen.
2009-02-04Vyatta::Config - simplify booleanStephen Hemminger
When returning boolean no need to have if (expr) return 1; else return 0 Also the proper boolean for false is undef not 0.
2009-02-04Vyatta::Config - fix perlcritic warnings from dangling returnStephen Hemminger
2009-02-04Vyatta::Config::returnValue - change to three argument openStephen Hemminger
Using three argument open is safer against global handle clash, and accidental scripting.
2009-02-04Revert "Cleanup confg library"Stephen Hemminger
Save is broken by this, so do in smaller chunks.
2009-02-03Cleanup confg libraryStephen Hemminger
Make this code pass perl critic. Mostly by changing it to return proper booleans, and use three argument open.
2008-11-24Need to fix some stuff from change to Vyatta::Stephen Hemminger
I wanted to use Vyatta::Config::Output, but the perl part of the autoconf installer is to stupid to handle directory trees, so had to limit it to one directory per package. So name should have been Vyatta::ConfigOutput...
2008-11-21Convert VyattaConfig (et al) to Vyatta::ConfigStephen Hemminger
Use hierarchal directory structure