Ejemplo n.º 1
0
    def getOptions(self, properties):
        options = Plugin.getOptions(self)
        options.addOption("-?", "--help", False, False, "display help")

        option = OptionFactory.newOption("-h", "--host", True, True,
                                         "hostname of the mysql-server.")
        option.setValues(properties.getPropertyValues('MYSQL_HOSTS'))
        options.add(option)

        option = OptionFactory.newOption("-d", "--database", True, False,
                                         "database in the mysql-server.")
        option.setValues(properties.getPropertyValues('DATABASES'))
        options.add(option)

        option = OptionFactory.newOption(
            "-e", "--environment", True, False,
            "environment descriptor of the mysql-server.")
        option.setValues(properties.getPropertyValues('ENVIRONMENTS'))
        options.add(option)

        option = OptionFactory.newOption(
            "-a", "--alias", True, False,
            "the name of the mysql database to install.")
        option.setValues(properties.getPropertyValues('ALIASES'))
        options.add(option)

        option = OptionFactory.newOption("-v", "--version", True, True,
                                         "version folder to install.")
        #option.setValues(properties.getPropertyValues('ENVIRONMENTS'))
        options.add(option)

        options.addOption("-i", "--ignore-errors", True, False,
                          "ignore errors.")
        return options
Ejemplo n.º 2
0
    def getOptions(self, properties):
        options = Plugin.getOptions(self)

        options.addOption("-?", "--help", False, False, "display help")

        option = OptionFactory.newOption("-s", "--sid", True, True,
                                         "tns name of the oracle database.")
        option.setValues(properties.getPropertyValues('ORACLE_SIDS'))
        options.add(option)

        option = OptionFactory.newOption("-u", "--user", True, False,
                                         "user in the oracle database.")
        option.setValues(properties.getPropertyValues('SCHEMES'))
        options.add(option)

        option = OptionFactory.newOption(
            "-e", "--environment", True, False,
            "environment descriptor of the oracle database.")
        option.setValues(properties.getPropertyValues('ENVIRONMENTS'))
        options.add(option)

        #    options.addOption("--no-compile", True, False, "disable the compilation of database objects.")
        options.addOption("-i", "--ignore-errors", True, False,
                          "ignore errors.")
        return options
Ejemplo n.º 3
0
    def getOptions(self, properties):
        options = Plugin.getOptions(self)

        options.addOption("-?", "--help", False, False, "display help")

        option = OptionFactory.newOption("-h", "--host", True, True,
                                         "hostname of the mysql-server.")
        option.setValues(properties.getPropertyValues('MYSQL_HOSTS'))
        options.add(option)

        option = OptionFactory.newOption("-d", "--database", True, False,
                                         "database in the mysql-server.")
        option.setValues(properties.getPropertyValues('DATABASES'))
        options.add(option)

        option = OptionFactory.newOption(
            "-e", "--environment", True, False,
            "environment descriptor of the mysql-server.")
        option.setValues(properties.getPropertyValues('ENVIRONMENTS'))
        options.add(option)

        #    options.addOption("--no-compile", True, False, "disable the compilation of database objects.")
        options.addOption("-i", "--ignore-errors", True, False,
                          "ignore errors.")
        return options
Ejemplo n.º 4
0
    def getOptions(self, properties):
        options = Plugin.getOptions(self)
        options.addOption("-?", "--help", False, False, "display help")

        option = OptionFactory.newOption("-h", "--host", True, True,
                                         "hostname of the postgresql-server.")
        option.setValues(properties.getPropertyValues('POSTGRESQL_HOSTS'))
        options.add(option)

        option = OptionFactory.newOption(
            "-p", "--port", True, True,
            "port number of the postgresql database.")
        option.setValues(properties.getPropertyValues('POSTGRESQL_HOSTS'))
        options.add(option)

        option = OptionFactory.newOption("-d", "--database", True, False,
                                         "database in the postgresql-server.")
        option.setValues(properties.getPropertyValues('DATABASES'))
        options.add(option)

        option = OptionFactory.newOption(
            "-e", "--environment", True, False,
            "environment descriptor of the postgresql-server.")
        option.setValues(properties.getPropertyValues('ENVIRONMENTS'))
        options.add(option)

        options.addOption("-i", "--ignore-errors", True, False,
                          "ignore errors.")
        return options
Ejemplo n.º 5
0
    def getOptions(self, properties):
        options = Plugin.getOptions(self)
        options.addOption("-?", "--help", False, False, "display help")

        option = OptionFactory.newOption("-w", "--workspace", True, True,
                                         "deploy emails to this workspace")
        option.setValues(properties.getPropertyValues('WORKSPACES'))
        options.add(option)

        option = OptionFactory.newOption("-e", "--environment", True, False,
                                         "deploy emails to this environment")
        option.setValues(properties.getPropertyValues('ENVIRONMENTS'))
        options.add(option)

        option = OptionFactory.newOption("-v", "--version", True, True,
                                         "version of emails to deploy")
        options.add(option)

        return options
Ejemplo n.º 6
0
 def addOption(self, type=None, longType=None, hasArguments=False, required=False, description=None):
   option = OptionFactory.newOption(type, longType, hasArguments, required, description)
   self.__options.append(option)
   return option