com.heroku.sdk.deploy.utils.Curl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heroku-deploy Show documentation
Show all versions of heroku-deploy Show documentation
Library for deploying Java applications to Heroku
package com.heroku.sdk.deploy.utils;
import java.io.File;
import java.io.IOException;
public class Curl {
public static void put(String urlStr, File file) throws IOException, InterruptedException {
ProcessBuilder pb = new ProcessBuilder().command("curl", "-T", file.getAbsolutePath(), "-L", urlStr);
pb.start().waitFor();
}
}