Exemple #1
0
def conan_reloadwww_cmd(_):
    instance = ConanInstance.instance()
    exec_remote(
        instance,
        ["sudo", "git", "-C", "/home/ubuntu/ceconan/conanproxy", "pull"])
Exemple #2
0
def conan_exec_cmd(args):
    instance = ConanInstance.instance()
    exec_remote_to_stdout(instance, args['remote_cmd'])
Exemple #3
0
def conan_restart_cmd(_):
    instance = ConanInstance.instance()
    exec_remote(instance, ["sudo", "service", "ce-conan", "restart"])
Exemple #4
0
def conan_login_cmd(args):
    instance = ConanInstance.instance()
    run_remote_shell(args, instance)
Exemple #5
0
def conan_reloadwww():
    """Reload the conan web."""
    instance = ConanInstance.instance()
    exec_remote(
        instance,
        ["sudo", "git", "-C", "/home/ubuntu/ceconan/conanproxy", "pull"])
Exemple #6
0
def conan_restart():
    """Restart the conan instance."""
    instance = ConanInstance.instance()
    exec_remote(instance, ["sudo", "service", "ce-conan", "restart"])
Exemple #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)
Exemple #8
0
def conan_login():
    """Log in to the conan instance."""
    instance = ConanInstance.instance()
    run_remote_shell(instance)