All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.pivotal.services.plugin.CfClientPlugin Maven / Gradle / Ivy

There is a newer version: 2.3.0-rc.6
Show newest version
package io.pivotal.services.plugin;

import io.pivotal.services.plugin.tasks.*;
import org.gradle.api.Plugin;
import org.gradle.api.Project;

/**
 * Root of the Cloud Foundry Client Plugin
 *
 * @author Biju Kunjummen
 */
public class CfClientPlugin implements Plugin {
	@Override
	public void apply(Project project) {
		project.getTasks().create("cf-push", CfPushTask.class);
		project.getTasks().create("cf-map-route", CfMapRouteTask.class);
		project.getTasks().create("cf-unmap-route", CfUnMapRouteTask.class);
		project.getTasks().create("cf-delete-app", CfDeleteAppTask.class);
		project.getTasks().create("cf-delete-route", CfDeleteRouteTask.class);
		project.getTasks().create("cf-rename-app", CfRenameAppTask.class);
		project.getTasks().create("cf-get-app-detail", CfAppDetailsTask.class);
		project.getTasks().create("cf-start-app", CfAppStartTask.class);
		project.getTasks().create("cf-stop-app", CfAppStopTask.class);
		project.getTasks().create("cf-restart-app", CfAppRestartTask.class);
		project.getTasks().create("cf-restage-app", CfRestageTask.class);
		project.getExtensions().create("cfConfig", CfPushPluginExtension.class);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy