def METHOD_NAME(self):
    pargs = self.app.pargs
    filename = "woupdate" + time.strftime("%Y%m%d-%H%M%S")
    install_args = ""
    wo_branch = "master"
    if pargs.mainline or pargs.beta:
        wo_branch = "mainline"
        install_args = install_args + "--mainline "
    elif pargs.branch:
        wo_branch = pargs.branch
        install_args = install_args + "-b {0} ".format(wo_branch)
    if pargs.force:
        install_args = install_args + "--force "
    if pargs.travis:
        install_args = install_args + "--travis "
        wo_branch = "updating-configuration"
    # check if WordOps already up-to-date
    if ((not pargs.force) and (not pargs.travis) and
        (not pargs.mainline) and (not pargs.beta) and
            (not pargs.branch)):
        wo_current = ("v{0}".format(WOVar.wo_version))
        wo_latest = WODownload.latest_release(self, "WordOps/WordOps")
        if wo_current == wo_latest:
            Log.info(
                self, "WordOps {0} is already installed"
                .format(wo_latest))
            self.app.close(0)
    # prompt user before starting upgrade
    if not pargs.force:
        Log.info(
            self, "WordOps changelog available on "
            "https://github.com/WordOps/WordOps/releases/tag/{0}"
            .format(wo_latest))
        start_upgrade = input("Do you want to continue:[y/N]")
        if start_upgrade not in ("Y", "y"):
            Log.error(self, "Not starting WordOps update")
    # download the install/update script
    if not os.path.isdir('/var/lib/wo/tmp'):
        os.makedirs('/var/lib/wo/tmp')
    WODownload.download(self, [["https://raw.githubusercontent.com/"
                                "WordOps/WordOps/{0}/install"
                                .format(wo_branch),
                                "/var/lib/wo/tmp/{0}".format(filename),
                                "update script"]])
    # launch install script
    if os.path.isfile('install'):
        Log.info(self, "updating WordOps from local install\n")
        try:
            Log.info(self, "updating WordOps, please wait...")
            os.system("/bin/bash install --travis")
        except OSError as e:
            Log.debug(self, str(e))
            Log.error(self, "WordOps update failed !")
    else:
        try:
            Log.info(self, "updating WordOps, please wait...")
            os.system("/bin/bash /var/lib/wo/tmp/{0} "
                      "{1}".format(filename, install_args))
        except OSError as e:
            Log.debug(self, str(e))
            Log.error(self, "WordOps update failed !")
    os.remove("/var/lib/wo/tmp/{0}".format(filename))