Skip to content

Commit

Permalink
feat(core): rename PurgeInternalStorage to PurgeCurrentExecutionFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Jul 11, 2024
1 parent 883a35f commit 8885e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
},
aliases = {"io.kestra.core.tasks.storages.PurgeExecution", "io.kestra.plugin.core.storage.PurgeExecution"}
)
public class PurgeInternalStorage extends Task implements RunnableTask<PurgeInternalStorage.Output> {
public class PurgeCurrentExecutionFiles extends Task implements RunnableTask<PurgeCurrentExecutionFiles.Output> {
@Override
public PurgeInternalStorage.Output run(RunContext runContext) throws Exception {
public PurgeCurrentExecutionFiles.Output run(RunContext runContext) throws Exception {
return Output.builder()
.uris(runContext.storage().deleteExecutionFiles())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.hamcrest.Matchers.is;

@KestraTest
class PurgeInternalStorageTest {
class PurgeCurrentExecutionFilesTest {
@Inject
private RunContextFactory runContextFactory;

Expand All @@ -31,7 +31,7 @@ void run() throws Exception {
var file = runContext.workingDir().createFile("test.txt", "Hello World".getBytes());
runContext.storage().putFile(file.toFile());

var purge = PurgeInternalStorage.builder()
var purge = PurgeCurrentExecutionFiles.builder()
.build();
var output = purge.run(runContext);

Expand Down

0 comments on commit 8885e58

Please sign in to comment.