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