def _download_cli_to_sandbox(self):
     # TODO: provide non-env interface to copy a dcos cli
     local_path = os.environ.get('DCOS_CLI_PATH')
     if local_path:
         cli_filepath = cli_install.install_cli(local_path, self._sandbox_path)
     else:
         cli_filepath = cli_install.download_cli(self._dcos_url, self._sandbox_path)
     return cli_filepath
 def _download_cli_to_sandbox(self):
     # TODO: provide non-env interface to copy a dcos cli
     local_path = os.environ.get('DCOS_CLI_PATH')
     if not local_path:
         src_tmpdir = os.environ.get('TESTRUN_TEMPDIR')
         if src_tmpdir:
             return cli_install.install_cli_from_dir(src_tmpdir, self._sandbox_path)
     if local_path:
         cli_filepath = cli_install.install_cli(local_path, self._sandbox_path)
     else:
         cli_filepath = cli_install.download_cli(self._dcos_url, self._sandbox_path)
     return cli_filepath
 def _install_cli(self):
     # create_service_account relies on dcos cli, which we may not have
     # at this point.
     self.cli_tempdir = tempfile.mkdtemp(prefix="conf_cluster")
     cli_install.download_cli(self.dcos_url, self.cli_tempdir)
Exemple #4
0
 def _install_cli(self):
     # create_service_account relies on dcos cli, which we may not have
     # at this point.
     self.cli_tempdir = tempfile.mkdtemp(prefix="conf_cluster")
     cli_install.download_cli(self.dcos_url, self.cli_tempdir)