Package com.griddynamics.genesis.tools.environments

Examples of com.griddynamics.genesis.tools.environments.Environment


    }

    public Integer getEnvironmentId(Integer projectId, final String envName) {
        String json = get(String.format(GET_ENVS_URL, projectId)).asString();
        Collection<Environment> environments = new Gson().fromJson(json, new TypeToken<Collection<Environment>>(){}.getType());
        Environment env = (Environment) CollectionUtils.find(environments, new Predicate() {
            @Override
            public boolean evaluate(Object o) {
                return ((Environment) o).getName().equals(envName);
            }
        });
        return env == null ? null : env.getId();
    }
View Full Code Here

TOP

Related Classes of com.griddynamics.genesis.tools.environments.Environment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.