Skip to content

Commit

Permalink
deleting unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiveerk committed Aug 2, 2024
1 parent 270fda3 commit b0454c2
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/types/privatekubectl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,38 +85,6 @@ export class PrivateKubectl extends Kubectl {
private containsFilenames(str: string) {
return str.includes('-f ') || str.includes('filename ')
}

private moveFileToTempManifestDir(file: string) {
createTempManifestsDirectory()
if (!fs.existsSync('/tmp/' + file)) {
core.debug(
'/tmp/' +
file +
' does not exist, and therefore cannot be moved to the manifest directory'
)
}

fs.copyFile('/tmp/' + file, '/tmp/manifests/' + file, function (err) {
if (err) {
core.debug(
'Could not rename ' +
'/tmp/' +
file +
' to ' +
'/tmp/manifests/' +
file +
' ERROR: ' +
err
)
return
}
core.debug(
"Successfully moved file '" +
file +
"' from /tmp to /tmp/manifest directory"
)
})
}
}

function createTempManifestsDirectory(): string {
Expand Down

0 comments on commit b0454c2

Please sign in to comment.