Ejemplo n.º 1
0
 def __init__(self,
              fitnesse_settings,
              deploylist=fitnesseConstants.DEFAULT_FITNESSE_DEPLOYLIST):
     self.main_proc = 'BuildFitNesseArtifact'
     #        self.logger = logging.getLogger(self.main_proc)
     self.logger = logging.getLogger(__name__)
     self.custom_logger = customLogger.CustomLogger(self.main_proc, True)
     self.entrynr = 0
     self.level = 0
     self.previous_schema = 'AUQW&^D*AD&FS'
     self.deploylist = deploylist
     self.fitnesse_settings = fitnesse_settings
 def __init__(self, argv, log_on_console=True):
     self.now = datetime.datetime.now()
     self.arguments = argv
     self.main_proc = 'CreateFitNesseArtifact'
     self.log_on_console = log_on_console
     self.logger = logging.getLogger(__name__)
     self.custom_logger = customLogger.CustomLogger(self.main_proc,
                                                    log_on_console)
     self.result_logger = customLogger.CustomLogger.configurelogger(
         self.custom_logger)
     self.fitnesse_settings = fitnesseSettings.FitNesseSettings()
     self.fitnesse_checks = fitnesseArtifactChecks.FitNesseArtifactChecks()
     self.result = err.OK
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#  SOFTWARE.
#

import logging

import supporting.errorcodes as err
from supporting.logging import customLogger

logger = logging.getLogger(__name__)
custom_logger = customLogger.CustomLogger('executeCommand', True)

deployItems = []


def getWorkitemList(deployList):
    thisproc = "processList"
    latestError = err.OK
    global entrynr
    entrynr = 0
    global level
    custom_logger.log(logger, logging.DEBUG, thisproc,
                      "Started to work on deploy list >" + deployList + "<.")

    try:
        with open(deployList) as theList:
 def __init__(self):
     self.logger = logging.getLogger(__name__)
     self.custom_logger = customLogger.CustomLogger(
         'FitNesseArtifactChecks', True)
 def __init__(self):
     self.logger = logging.getLogger(__name__)
     self.custom_logger = customLogger.CustomLogger('FitNesseSettings', True)
     self.source_fitnesse_directory = constants.DEFAULT_SOURCE_FITNESSEDIR
     self.target_fitnesse_directory = constants.DEFAULT_TARGET_FITNESSEDIR