Skip to content

Commit

Permalink
chore: rename simulate field to dryRun
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandonogueira committed Mar 4, 2024
1 parent b4abe95 commit 2249099
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/ox/engine/internal/OxEnvironment.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class OxEnvironment {
/**
* If true, nothing will be executed. Just simulated (and printed).
*/
private boolean simulate = false;
private boolean dryRun = false;
private MongoDBConnector mongoConnector;

public void execute(OxAction oxAction) {
Expand All @@ -20,7 +20,7 @@ public void execute(OxAction oxAction) {

LOG.info("[Ox] ----------- Executing action: {}", oxAction);

if (isSimulate()) {
if (isDryRun()) {
LOG.info("[Ox] [Simulate] Executing action: ");
LOG.info(oxAction.toString());
} else {
Expand All @@ -42,11 +42,11 @@ public MongoDatabase getMongoDatabase() {
}

public void dryRun(boolean dryRun) {
this.simulate = dryRun;
this.dryRun = dryRun;
}

public boolean isSimulate() {
return simulate;
public boolean isDryRun() {
return dryRun;
}

public void setMongoConnector(MongoDBConnector mongoConnector) {
Expand Down

0 comments on commit 2249099

Please sign in to comment.