Tabnine Logo
ClouddriverProfileFactory.backupRequiredFiles
Code IndexAdd Tabnine to your IDE (free)

How to use
backupRequiredFiles
method
in
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.ClouddriverProfileFactory

Best Java code snippets using com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.ClouddriverProfileFactory.backupRequiredFiles (Showing top 2 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 // We need to make modifications to this deployment configuration, but can't use helpful objects
 // like the accountService on a clone. Therefore, we'll make the modifications in place and
 // restore to the original state when the modifications are written out.
 Providers originalProviders = deploymentConfiguration.getProviders().cloneNode(Providers.class);
 Providers modifiedProviders = deploymentConfiguration.getProviders();
 DeploymentEnvironment deploymentEnvironment = deploymentConfiguration.getDeploymentEnvironment();
 if (deploymentEnvironment.getBootstrapOnly() != null && deploymentEnvironment.getBootstrapOnly()) {
  String bootstrapAccountName = deploymentEnvironment.getAccountName();
  removeBootstrapOnlyAccount(modifiedProviders, deploymentConfiguration.getName(), bootstrapAccountName);
 }
 Artifacts artifacts = deploymentConfiguration.getArtifacts();
 List<String> files = backupRequiredFiles(modifiedProviders, deploymentConfiguration.getName());
 files.addAll(backupRequiredFiles(artifacts, deploymentConfiguration.getName()));
 if (deploymentConfiguration.getProviders() != null) {
  processProviders(deploymentConfiguration.getProviders());
 }
 profile.appendContents(yamlToString(modifiedProviders))
   .appendContents(yamlToString(new ArtifactWrapper(artifacts)))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(files);
 deploymentConfiguration.setProviders(originalProviders);
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 // We need to make modifications to this deployment configuration, but can't use helpful objects
 // like the accountService on a clone. Therefore, we'll make the modifications in place and
 // restore to the original state when the modifications are written out.
 Providers originalProviders = deploymentConfiguration.getProviders().cloneNode(Providers.class);
 Providers modifiedProviders = deploymentConfiguration.getProviders();
 DeploymentEnvironment deploymentEnvironment = deploymentConfiguration.getDeploymentEnvironment();
 if (deploymentEnvironment.getBootstrapOnly() != null && deploymentEnvironment.getBootstrapOnly()) {
  String bootstrapAccountName = deploymentEnvironment.getAccountName();
  removeBootstrapOnlyAccount(modifiedProviders, deploymentConfiguration.getName(), bootstrapAccountName);
 }
 Artifacts artifacts = deploymentConfiguration.getArtifacts();
 List<String> files = backupRequiredFiles(modifiedProviders, deploymentConfiguration.getName());
 files.addAll(backupRequiredFiles(artifacts, deploymentConfiguration.getName()));
 if (deploymentConfiguration.getProviders() != null) {
  processProviders(deploymentConfiguration.getProviders());
 }
 profile.appendContents(yamlToString(modifiedProviders))
   .appendContents(yamlToString(new ArtifactWrapper(artifacts)))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(files);
 deploymentConfiguration.setProviders(originalProviders);
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profileClouddriverProfileFactorybackupRequiredFiles

Popular methods of ClouddriverProfileFactory

  • getProfile
  • processProviders
  • removeBootstrapOnlyAccount
  • yamlToString

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now