Changes between Version 28 and Version 29 of RefactorClient


Ignore:
Timestamp:
09/26/06 20:04:41 (17 years ago)
Author:
desai
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RefactorClient

    v28 v29  
    5757 
    5858== Writing a Client Tool Module == 
    59  1. Add a new file in src/lib/Client/Tools/ 
    60  1. Add an entry for this file in src/lib/Client/Tools/!__init!__.py 
    61  1. Add a class in this file, with the same name as the file, that subclasses Bcfg2.Client.Tools.Tool (Bcfg2.Client.Tools.!PkgTool for packaging systems) 
    62  1. Add a method Verify<entry.tag> that returns true or false, based on client state (Mark Verify as done) 
    63  1. If Add a method Install<entry.tag> that returns true or false. (For non package tools) 
    64  1. Add a Remove method that removes entries based on self.setup (Mark Removal as done) 
    65  1. Add a !FindExtra method that locates entries not included in the configuration (Mark Extra Detection as done) (optional; this may not be possible depending on the tool) 
    6659 
    67 For packaging tools, subclass Bcfg2.Client.Tools.!PkgTool and define pkgtype and pkgtool. See the RPM module for an example. 
     60See WritingClientToolDrivers for details.