def __init__(self, sub_parsers): super(DownloadCommand, self).__init__(sub_parsers) self.parser.add_argument("-n", "--dry-run", action="store_true") self.parser.add_argument( "artifact", nargs='?', default='', help=("The artifact to download e.g. {%s}. " "Omit this argument to list all zip and jar artifacts" % ','.join(ArtifactsList.get_artifacts_list()))) self.parser = JenkinsParser(self.parser) self.parser = FileUtilsParser(self.parser)
def __init__(self, sub_parsers): super(InstallBaseCommand, self).__init__(sub_parsers) self.parser.add_argument("-n", "--dry-run", action="store_true") self.parser.add_argument("server", nargs="?", help="The server directory, or a server-zip, " "or the url of a server-zip") self.parser.add_argument( "--prestartfile", action="append", help="Run these OMERO commands before starting server, " "can be repeated") self.parser.add_argument( "--ignoreconfig", action="store_true", help="Don't copy the old configuration file when upgrading") self.parser = JenkinsParser(self.parser) self.parser = DbParser(self.parser) self.parser = FileUtilsParser(self.parser) Add = EnvDefault.add Add(self.parser, "sym", "OMERO-CURRENT") self.parser.add_argument("--no-start", action="store_true", help="Don't start any omero components") self.parser.add_argument("--no-web", action="store_true", help="Ignore OMERO.web, don't start or stop") self.parser.add_argument("--delete-old", action="store_true", help="Delete the old server directory") self.parser.add_argument("--keep-old-zip", action="store_true", help="Don't delete the old server zip") # Record the values of these environment variables in a file envvars = "ICE_HOME PATH DYLD_LIBRARY_PATH LD_LIBRARY_PATH PYTHONPATH" envvarsfile = os.path.join("%(sym)s", "omero.envvars") Add(self.parser, "savevars", envvars) Add(self.parser, "savevarsfile", envvarsfile)