Ejemplo n.º 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")
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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")
Ejemplo n.º 5
0
 def __init__(self):
     # Give our sub command a name
     self._name = 'api'
     # let the base class setup methods in our class
     SubCommand.__init__(self)
Ejemplo n.º 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)