def flocker_volume_options(cls):
 original_parameters = getattr(cls, 'optParameters', [])
 cls.optParameters = (original_parameters + [['config', None, DEFAULT_CONFIG_PATH.path, 'The path to the Flocker volume configuration file, containing the node ID of the Flocker volume service on this node. This file will be created if it does not already exist.'], ['pool', None, FLOCKER_POOL, 'The ZFS pool to use for volumes.'], ['mountpoint', None, FLOCKER_MOUNTPOINT.path, 'The path where ZFS filesystems will be mounted.']])
 original_postOptions = cls.postOptions
 def postOptions(self):
  self['config'] = FilePath(self['config'])
  original_postOptions(self)
 cls.postOptions = postOptions
 return cls

def flocker_volume_options ( cls ) : original_parameters = getattr ( cls , 'optParameters' , [ ] ) cls . optParameters = ( original_parameters + [ [ 'config' , None , DEFAULT_CONFIG_PATH . path , 'The path to the Flocker volume configuration file, containing the node ID of the Flocker volume service on this node. This file will be created if it does not already exist.' ] , [ 'pool' , None , FLOCKER_POOL , 'The ZFS pool to use for volumes.' ] , [ 'mountpoint' , None , FLOCKER_MOUNTPOINT . path , 'The path where ZFS filesystems will be mounted.' ] ] ) original_postOptions = cls . postOptions def postOptions ( self ) : self [ 'config' ] = FilePath ( self [ 'config' ] ) original_postOptions ( self ) cls . postOptions = postOptions return cls
a class decorator to add volumeservice specific command line options to flocker commands .