| 21 | import com.google.inject.Singleton; |
| 22 | |
| 23 | @Singleton |
| 24 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected