com.github.cloudyrock.dimmer.DimmerBuilder Maven / Gradle / Ivy
package com.github.cloudyrock.dimmer;
import java.util.HashMap;
import static java.util.Arrays.asList;
public class DimmerBuilder {
public static DimmerDefaultEnvironmentConfigurable local() {
return new DimmerDefaultEnvironmentConfigurable() {
@Override
public DimmerLocalRunner defaultEnvironment() {
return DimmerLocalRunner.withDefaultEnvironment();
}
@Override
public DimmerLocalRunner environments(String... environments) {
return DimmerLocalRunner
.withEnvironmentsAndMetadata(asList(environments), new HashMap<>());
}
};
}
public static DimmerRemoteRunner remote(String url) {
return new DimmerRemoteRunner(url);
}
}