示例#1
0
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Add debug option to all commands (creates self.debug)
     self.opt('-d', '--debug', action='store_const',
              const=True, default=False, help="print the REST calls used")
     self.opt('-H', '--host', default=None,
              help="hostname or ip for the storage node")
示例#2
0
 def __init__(self):
     # Give our sub command a name
     self._name = 'tools'
     # Create a volume helper with our local storage config
     self.volume = VolumeHelper(LunrConfig.from_storage_conf())
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     self.total = defaultdict(float)
示例#3
0
 def __init__(self):
     # Give our sub command a name
     self._name = 'tools'
     # Create a volume helper with our local storage config
     self.volume = VolumeHelper(LunrConfig.from_storage_conf())
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     self.total = defaultdict(float)
示例#4
0
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Add debug option to all commands (creates self.debug)
     self.opt('-d',
              '--debug',
              action='store_const',
              const=True,
              default=False,
              help="print the REST calls used")
 def __init__(self):
     # Give our sub command a name
     self._name = 'api'
     # let the base class setup methods in our class
     SubCommand.__init__(self)
示例#6
0
 def __init__(self):
     # Give our sub command a name
     self._name = 'env'
     # let the base class setup methods in our class
     SubCommand.__init__(self)