Exemple #1
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
            bpoId=None,  # or Cmnd-Input
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {
            'bpoId': bpoId,
        }
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
        bpoId = callParamsDict['bpoId']

        ####+END:
        def cpsInit():
            return collections.OrderedDict()

        #def menuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity) # 'little' or 'none'
        def extMenuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName,
                                 cps,
                                 cmndArgs,
                                 icmName=icmExName,
                                 verbosity=verbosity)  # 'little' or 'none'

        oneBpo = "pmi_ByD-100001"
        if bpoId: oneBpo = bpoId

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        bpo.examples_bpo_basicAccess(oneBpo)

        baseLiveTargets.examples_baseLiveTargets().cmnd(bpoId=oneBpo, )

        icm.cmndExampleMenuChapter('*Related ICMs*')

        icmExName = "palsRepoLiveParams.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        return (cmndOutcome)
Exemple #2
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        icm.cmndExampleMenuChapter('*General Dev and Testing CMNDs*')

        oneBpo = "pmi_ByD-100001"
        cmndName = "argsAndParamsProc"

        cmndArgs = "list argOne twoArg arg3"
        cps = cpsInit()
        menuItem()
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuChapter('*Other Than ICM Execution Line Examples*')

        execLineEx("""ls -l""")

        bpo.examples_bpo_basicAccess(oneBpo)

        return (cmndOutcome)
Exemple #3
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
            bpoId=None,  # or Cmnd-Input
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {
            'bpoId': bpoId,
        }
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
        bpoId = callParamsDict['bpoId']

        ####+END:
        #def cpsInit(): return collections.OrderedDict()
        #def menuItem(): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        #def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        oneBpo = "pmi_ByD-100001"
        if bpoId: oneBpo = bpoId

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        bpo.examples_bpo_basicAccess(oneBpo)

        repoProfile.examples_repoProfile().cmnd(bpoId=oneBpo, )

        return (cmndOutcome)
Exemple #4
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs,
                                 verbosity=verbosity)  # 'little' or 'none'

        def extMenuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName,
                                 cps,
                                 cmndArgs,
                                 icmName=icmExName,
                                 verbosity=verbosity)  # 'little' or 'none'

        # def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        oneBpo = "pmi_ByD-100001"
        # oneSiRelPath = "plone3/main"

        bpo.examples_bpo_basicAccess(oneBpo)

        # palsBpo.examples_palsBpo_basicAccess(oneBpo, oneSiRelPath, menuLevel='chapter')

        icm.cmndExampleMenuChapter('*PALS-BASES Update*')

        cmndName = "basesUpdate"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        menuItem(verbosity='little')

        cmndName = "palsToBxBash"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        menuItem(verbosity='little')

        icmExName = "palsBaseLiveTargets.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*PALS-REPOs Example-Cmnds*')

        icmExName = "palsRepoProfile.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        icmExName = "palsRepoLiveParams.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*Digest-SIs Example-Cmnds*')

        cmndName = "enabledSisInfo"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*PALS-SIs Example-Cmnds*')

        thisBpo = palsBpo.obtainBpo(oneBpo, )
        thisBpo.sis.sisDigest()

        icmExName = "palsSiPlone3.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo

        for eachSiPath in thisBpo.sis.svcInst_primary_enabled:
            cps['si'] = palsSis.siPathToSiId(
                oneBpo,
                eachSiPath,
            )
            extMenuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*PALS-VirDom-SIs Example-Cmnds*')

        icmExName = "palsSivdApache2.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo

        for eachSiPath in thisBpo.sis.svcInst_virDom_enabled:
            cps['si'] = palsSis.siPathToSiId(
                oneBpo,
                eachSiPath,
            )
            extMenuItem(verbosity='none')

        return (cmndOutcome)