Beispiel #1
0
 def __init__(self, car_name):
     try:
         self.car = car.select_car(car_name)
     except exceptions.SystemSetupError:
         self.car = None
     self.binary_path = None
     self.data_paths = None
Beispiel #2
0
 def __init__(self, car_name, http_port, install_dir, distribution_version,
              rally_root):
     self.car = car.select_car(car_name)
     self.http_port = http_port
     self.install_dir = install_dir
     self.distribution_version = distribution_version
     self.rally_root = rally_root
     self.binary_path = "%s/docker-compose.yml" % self.install_dir
     self.data_paths = [self.install_dir]
Beispiel #3
0
 def __init__(self, cfg, install_dir, single_machine):
     self._config = cfg
     self.preserve = self._config.opts("mechanic", "preserve.install")
     car_name = self._config.opts("mechanic", "car.name")
     self.car = car.select_car(car_name)
     self.http_port = self._config.opts("provisioning", "node.http.port")
     self.data_root_paths = self._config.opts("mechanic", "node.datapaths")
     self.data_paths = None
     self.binary_path = None
     self.install_dir = install_dir
     self.single_machine = single_machine
Beispiel #4
0
 def prepare(self):
     selected_car = car.select_car(self._config)
     http_port = self._config.opts("provisioning", "node.http.port")
     self._install_binary()
     self._configure(selected_car, http_port)
     return selected_car
Beispiel #5
0
 def prepare(self):
     try:
         return car.select_car(self.cfg)
     except exceptions.SystemSetupError:
         return None
Beispiel #6
0
 def prepare(self):
     selected_car = car.select_car(self._config)
     http_port = self._config.opts("provisioning", "node.http.port")
     self._install_binary()
     self._configure(selected_car, http_port)
     return selected_car
Beispiel #7
0
 def prepare(self):
     try:
         return car.select_car(self.cfg)
     except exceptions.SystemSetupError:
         return None