Search in sources :

Example 1 with DeployFunctionAppTask

use of com.microsoft.azure.toolkit.lib.appservice.task.DeployFunctionAppTask in project azure-maven-plugins by microsoft.

the class DeployMojo method deployArtifact.

private void deployArtifact(final IFunctionAppBase<?> target) {
    final File file = new File(getDeploymentStagingDirectoryPath());
    final FunctionDeployType type = StringUtils.isEmpty(deploymentType) ? null : FunctionDeployType.fromString(deploymentType);
    new DeployFunctionAppTask(target, file, type).execute();
}
Also used : File(java.io.File) FunctionDeployType(com.microsoft.azure.toolkit.lib.appservice.model.FunctionDeployType) DeployFunctionAppTask(com.microsoft.azure.toolkit.lib.appservice.task.DeployFunctionAppTask)

Aggregations

FunctionDeployType (com.microsoft.azure.toolkit.lib.appservice.model.FunctionDeployType)1 DeployFunctionAppTask (com.microsoft.azure.toolkit.lib.appservice.task.DeployFunctionAppTask)1 File (java.io.File)1