pass pub_endpoint in rake task