コード例 #1
0
ファイル: command.py プロジェクト: tokyodevs/dcos
    def __init__(self, **cmd_opts):
        """Constructor."""
        self.msg_src = self.__class__.__name__
        super(CmdStart, self).__init__(**cmd_opts)

        self.config = cmdconf.create(**self.cmd_opts)
        LOG.debug(f'{self.msg_src}: cmd_opts: {self.cmd_opts}')
コード例 #2
0
ファイル: command.py プロジェクト: pierrebeitz/dcos
    def __init__(self, **cmd_opts):
        """"""
        super(CmdUpgrade, self).__init__(**cmd_opts)

        self.config = cmdconf.create(**self.cmd_opts)

        LOG.debug(f'{self.msg_src}: cmd_opts: {self.cmd_opts}')
コード例 #3
0
ファイル: command.py プロジェクト: cathong/dcos
    def __init__(self, **cmd_opts):
        """Constructor."""
        self.msg_src = self.__class__.__name__
        super(CmdStart, self).__init__(**cmd_opts)

        self.config = cmdconf.create(**self.cmd_opts)
        self.state = CommandState(str(self.config.inst_storage.var_dpath / 'state'))
        LOG.debug(f'{self.msg_src}: cmd_opts: {self.cmd_opts}')
コード例 #4
0
ファイル: command.py プロジェクト: cathong/dcos
    def __init__(self, **cmd_opts):
        """"""
        super(CmdUpgrade, self).__init__(**cmd_opts)

        self.config = cmdconf.create(**self.cmd_opts)
        self.state = CommandState(str(self.config.inst_storage.var_dpath / 'state'))

        LOG.debug(f'{self.msg_src}: cmd_opts: {self.cmd_opts}')
コード例 #5
0
ファイル: command.py プロジェクト: tokyodevs/dcos
    def __init__(self, **cmd_opts):
        """"""
        self.msg_src = self.__class__.__name__
        super(CmdSetup, self).__init__(**cmd_opts)
        if self.cmd_opts.get(CLI_CMDOPT.CMD_TARGET) == CLI_CMDTARGET.STORAGE:
            # Deactivate cluster-related configuration steps
            self.cmd_opts[CLI_CMDOPT.DCOS_CLUSTERCFGPATH] = 'NOP'

        self.config = cmdconf.create(**self.cmd_opts)
        LOG.debug(f'{self.msg_src}: cmd_opts: {self.cmd_opts}')
コード例 #6
0
ファイル: command.py プロジェクト: cathong/dcos
    def __init__(self, **cmd_opts):
        """"""
        super(CmdSetup, self).__init__(**cmd_opts)
        if self.cmd_opts.get(CLI_CMDOPT.CMD_TARGET) == CLI_CMDTARGET.STORAGE:
            # Deactivate cluster-related configuration steps
            self.cmd_opts[CLI_CMDOPT.DCOS_CLUSTERCFGPATH] = 'NOP'

        self.config = cmdconf.create(**self.cmd_opts)
        self.state = CommandState(str(self.config.inst_storage.var_dpath / 'state'))

        LOG.debug(f'{self.msg_src}: cmd_opts: {self.cmd_opts}')