- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for writeToFile (0.65 sec)
-
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/SourceFile.java
return writeToDir(base, name); } public TestFile writeToDir(TestFile base, String name) { TestFile file = base.file(path, name); writeToFile(file); return file; } public void writeToFile(TestFile file) { if (file.exists()) { file.write(""); } file.write(content); } public String withPath(String basePath) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-execution/workers/src/testFixtures/groovy/org/gradle/workers/fixtures/WorkerExecutorFixture.groovy
return importDeclarations } TestClass writeToFile(File file) { file.text = """ package ${packageName}; ${importDeclarations} ${body} """ return this } TestClass writeToBuildSrc() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 05 12:36:12 UTC 2024 - 14.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy
thrown RuntimeException when: lock.readFile({}) then: thrown FileIntegrityViolationException } def "existing lock is unlocked cleanly after writeToFile() has been called"() { when: def lock = this.createLock(Exclusive) lock.writeFile({}) lock.updateFile({} as Runnable) then: lock.unlockedCleanly
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 13.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/phases/init/kubeletfinalize.go
info.ClientKeyData = []byte{} info.ClientCertificateData = []byte{} info.ClientKey = pemPath info.ClientCertificate = pemPath // Writes the kubeconfig back to disk. if err = clientcmd.WriteToFile(*kubeconfig, kubeconfigPath); err != nil { return errors.Wrapf(err, "failed to serialize %q", kubeconfigPath) } // Restart the kubelet.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:54:51 UTC 2024 - 6.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/kubeconfig/kubeconfig.go
} return client, nil } // WriteToDisk writes a KubeConfig object down to disk with mode 0600 func WriteToDisk(filename string, kubeconfig *clientcmdapi.Config) error { err := clientcmd.WriteToFile(*kubeconfig, filename) if err != nil { return err } return nil } // GetClusterFromKubeConfig returns the default Cluster of the specified KubeConfig
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 10:21:33 UTC 2024 - 7.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AbstractTransformExecution.java
TransformExecutionResultSerializer resultSerializer = new TransformExecutionResultSerializer(); resultSerializer.writeToFile(getResultsFile(workspace), result); return result; } finally { context.setResult(ExecuteTransformActionBuildOperationType.RESULT_INSTANCE); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 11:52:44 UTC 2024 - 16.6K bytes - Viewed (0) -
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy
file("buildSrc").deleteDir() def builder = artifactBuilder() fixture.workActionThatCreatesFiles.writeToFile builder.sourceFile("org/gradle/test/TestWorkAction.java") fixture.testParameterType.writeToFile builder.sourceFile("org/gradle/test/TestParameters.java") builder.sourceFile("org/gradle/other/Foo.java") << """ $fixture.parameterClass
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 13:00:39 UTC 2024 - 31K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
"https://localhost:1234", "kubernetes-test", "user-test", certificateAuthorityData, encodedClientKey, pkiutil.EncodeCertPEM(cert), ) if err := clientcmd.WriteToFile(*config, filepath.Join(dir, name)); err != nil { t.Fatalf("couldn't write out certificate") } return cert } func TestFileExists(t *testing.T) { tmpdir, err := os.MkdirTemp("", "")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter.go
newConfig.AuthInfos[authInfoName].ClientKeyData = encodedClientKey newConfig.AuthInfos[authInfoName].ClientCertificateData = pkiutil.EncodeCertPEM(newCert) // writes the kubeConfig to disk return clientcmd.WriteToFile(*newConfig, rw.kubeConfigFilePath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 01 03:09:53 UTC 2024 - 8.4K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
if zipExists { return hashZip(mod, zipfile, ziphashfile) } // From here to the os.Rename call below is functionally almost equivalent to // renameio.WriteToFile, with one key difference: we want to validate the // contents of the file (by hashing it) before we commit it. Because the file // is zip-compressed, we need an actual file — or at least an io.ReaderAt — to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0)