/** * Constructs a {@link StrictHostChecking} being disabled. * * @return a disabled {@link StrictHostChecking} */ public static StrictHostChecking disabled() { return new StrictHostChecking(false); }
/** * Creates an empty {@link CustomDeployment}. * * @return an empty {@link CustomDeployment} */ public static CustomDeployment empty() { return new CustomDeployment(); }
@Override public <A extends Application, S extends ApplicationSchema<A>> A realize(String applicationName, S applicationSchema, ApplicationConsole console, Option... options) { // TODO: we need to use "default platform options" here to automatically turn off strict-host-checking Options managedOptions = new Options(options); managedOptions.addIfAbsent(StrictHostChecking.disabled()); return super.realize(applicationName, applicationSchema, console, managedOptions.asArray()); }
deployment.getDeploymentArtifacts(applicationSchema, platform, options)) deployer.deploy(artifactsToDeploy, remoteDirectory, platform, options.asArray());
boolean cleanup = performRemoteCopy(source, destination, platform, combinedOptions);
/** * Constructs a {@link StrictHostChecking}. * * @param enabled should strict-host-checking be enabled? * * @return a {@link StrictHostChecking} */ public static StrictHostChecking enabled(boolean enabled) { return new StrictHostChecking(enabled); } }
/** * Creates a {@link CustomDeployment} consisting of the specified {@link DeploymentArtifact}s. * * @param artifacts the {@link DeploymentArtifact}s * * @return the {@link CustomDeployment} */ public static CustomDeployment including(DeploymentArtifact... artifacts) { CustomDeployment deployment = new CustomDeployment(); if (artifacts != null) { for (DeploymentArtifact artifact : artifacts) { deployment.artifactsToDeploy.add(artifact); } } return deployment; } }
/** * Constructs a {@link StrictHostChecking} being enabled. * * @return an enabled {@link StrictHostChecking} */ public static StrictHostChecking enabled() { return new StrictHostChecking(true); }