コード例 #1
0
    def deploy(self, force=True):
        """
        Copies the yaml file from etc in the distribution to the .cloudmesh
        directory. If the file exits it will not be copied and a warning is
        thrown. If the file is the same as in etc no warning is thrown.

        :param force: Forgot what this does, please document.
        """
        # setup ~/.cloudmesh/pbs
        log.debug(self.pbs_dir)
        if not os.path.isdir(self.pbs_dir):
            os.makedirs(self.pbs_dir)

        self._load_jobid()

        xcopy("../etc/", config_file(""), "*.yaml", force=force)
コード例 #2
0
ファイル: OpenPBS.py プロジェクト: kwtillma/pbs
    def deploy(self, force=True):
        """
        Copies the yaml file from etc in the distribution to the .cloudmesh
        directory. If the file exits it will not be copied and a warning is
        thrown. If the file is the same as in etc no warning is thrown.

        :param force: Forgot what this does, please document.
        """
        # setup ~/.cloudmesh/pbs
        log.debug(self.pbs_dir)
        if not os.path.isdir(self.pbs_dir):
            os.makedirs(self.pbs_dir)

        self._load_jobid()

        xcopy("../etc/", config_file(""), "*.yaml", force=force)
コード例 #3
0
 def deploy(force=True):
     """copies the yaml file from etc in the distribution to the .cloudmesh
     directory. If the file exits it will not be copied and a warning is
     thrown. If the file is the same as in etc no warning is thrown.
     """
     xcopy("../etc/", "~/.cloudmesh", "*.yaml", force=force)
コード例 #4
0
ファイル: PBSDeploy.py プロジェクト: kwtillma/pbs
 def deploy(force=True):
     """copies the yaml file from etc in the distribution to the .cloudmesh
     directory. If the file exits it will not be copied and a warning is
     thrown. If the file is the same as in etc no warning is thrown.
     """
     xcopy("../etc/", "~/.cloudmesh", "*.yaml", force=force)