MCPcopy Index your code
hub / github.com/GerritCodeReview/gerrit / InitDev

Class InitDev

java/com/google/gerrit/pgm/init/InitDev.java:23–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21import com.google.inject.Singleton;
22
23@Singleton
24public class InitDev implements InitStep {
25 private final InitFlags flags;
26 private final Section plugins;
27
28 @Inject
29 InitDev(InitFlags flags, Section.Factory sections) {
30 this.flags = flags;
31 this.plugins = sections.get("plugins", null);
32 }
33
34 @Override
35 public void run() throws Exception {
36 if (!flags.dev) {
37 return;
38 }
39 plugins.set("allowRemoteAdmin", "true");
40 }
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected