Package google.registry.tools
Class ConfigureTldCommand
java.lang.Object
google.registry.tools.ConfirmingCommand
google.registry.tools.MutatingCommand
google.registry.tools.ConfigureTldCommand
- All Implemented Interfaces:
Command
Command to create or update a
Tld
using a YAML file.-
Field Summary
Fields inherited from class google.registry.tools.ConfirmingCommand
errorPrintStream, printStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Whether to NOT run the command.protected void
init()
Initializes the command.Methods inherited from class google.registry.tools.MutatingCommand
execute, flushTransaction, getChangedEntities, postBatchExecute, prompt, stageEntityChange
Methods inherited from class google.registry.tools.ConfirmingCommand
checkExecutionState, postExecute, run
-
Constructor Details
-
ConfigureTldCommand
public ConfigureTldCommand()
-
-
Method Details
-
init
Description copied from class:MutatingCommand
Initializes the command.Subclasses override this method to populate
MutatingCommand.changedEntitiesMap
with updated entities. The old entity is the key and the new entity is the value; the key is null for newly created entities and the value is null for deleted entities.- Specified by:
init
in classMutatingCommand
- Throws:
Exception
-
dontRunCommand
protected boolean dontRunCommand()Description copied from class:ConfirmingCommand
Whether to NOT run the command. Override to true for dry-run commands.- Overrides:
dontRunCommand
in classConfirmingCommand
-