Пример #1
0
def conan_reloadwww_cmd(_):
    instance = ConanInstance.instance()
    exec_remote(
        instance,
        ["sudo", "git", "-C", "/home/ubuntu/ceconan/conanproxy", "pull"])
Пример #2
0
def conan_exec_cmd(args):
    instance = ConanInstance.instance()
    exec_remote_to_stdout(instance, args['remote_cmd'])
Пример #3
0
def conan_restart_cmd(_):
    instance = ConanInstance.instance()
    exec_remote(instance, ["sudo", "service", "ce-conan", "restart"])
Пример #4
0
def conan_login_cmd(args):
    instance = ConanInstance.instance()
    run_remote_shell(args, instance)
Пример #5
0
def conan_reloadwww():
    """Reload the conan web."""
    instance = ConanInstance.instance()
    exec_remote(
        instance,
        ["sudo", "git", "-C", "/home/ubuntu/ceconan/conanproxy", "pull"])
Пример #6
0
def conan_restart():
    """Restart the conan instance."""
    instance = ConanInstance.instance()
    exec_remote(instance, ["sudo", "service", "ce-conan", "restart"])
Пример #7
0
def conan_exec(remote_cmd: Sequence[str]):
    """Execute the REMOTE_CMD on the conan instance."""
    instance = ConanInstance.instance()
    exec_remote_to_stdout(instance, remote_cmd)
Пример #8
0
def conan_login():
    """Log in to the conan instance."""
    instance = ConanInstance.instance()
    run_remote_shell(instance)