Skip to content

Commit

Permalink
Remove GtechTool (#242)
Browse files Browse the repository at this point in the history
It is burdensome to have to maintain two sets of tools, one of which
contains a strict subset of functionalities of the other. All admins
should use the same tool and their ability to administer should be
restricted by the IAM roles they have, not the tools they use.
  • Loading branch information
jianglai committed Aug 26, 2019
1 parent c645fe6 commit f72c6c3
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 201 deletions.

This file was deleted.

83 changes: 0 additions & 83 deletions core/src/main/java/google/registry/tools/GtechTool.java

This file was deleted.

3 changes: 1 addition & 2 deletions core/src/main/java/google/registry/tools/RegistryCli.java
Expand Up @@ -44,8 +44,7 @@
final class RegistryCli implements AutoCloseable, CommandRunner {

// The environment parameter is parsed twice: once here, and once with {@link
// RegistryToolEnvironment#parseFromArgs} in the {@link RegistryTool#main} or {@link
// GtechTool#main} functions.
// RegistryToolEnvironment#parseFromArgs} in the {@link RegistryTool#main} function.
//
// The flag names must be in sync between the two, and also - this is ugly and we should feel bad.
@Parameter(
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/google/registry/tools/RegistryTool.java
Expand Up @@ -44,7 +44,6 @@ public final class RegistryTool {
.put("create_registrar", CreateRegistrarCommand.class)
.put("create_registrar_groups", CreateRegistrarGroupsCommand.class)
.put("create_reserved_list", CreateReservedListCommand.class)
.put("create_sandbox_tld", CreateSandboxTldCommand.class)
.put("create_tld", CreateTldCommand.class)
.put("curl", CurlCommand.class)
.put("delete_allocation_tokens", DeleteAllocationTokensCommand.class)
Expand Down Expand Up @@ -114,7 +113,6 @@ public final class RegistryTool {
.put("update_premium_list", UpdatePremiumListCommand.class)
.put("update_registrar", UpdateRegistrarCommand.class)
.put("update_reserved_list", UpdateReservedListCommand.class)
.put("update_sandbox_tld", UpdateSandboxTldCommand.class)
.put("update_server_locks", UpdateServerLocksCommand.class)
.put("update_tld", UpdateTldCommand.class)
.put("upload_claims_list", UploadClaimsListCommand.class)
Expand Down

This file was deleted.

50 changes: 0 additions & 50 deletions core/src/test/java/google/registry/tools/GtechToolTest.java

This file was deleted.

0 comments on commit f72c6c3

Please sign in to comment.