-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace RuntimeInfrastructure#estimate with InternalEnvironmentFactory
It is done for decoupling runtime from environment configuration
- Loading branch information
1 parent
4b560ce
commit eb90e43
Showing
36 changed files
with
757 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...e/che/workspace/infrastructure/docker/environment/compose/ComposeInternalEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2012-2017 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
package org.eclipse.che.workspace.infrastructure.docker.environment.compose; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import org.eclipse.che.api.core.ValidationException; | ||
import org.eclipse.che.api.core.model.workspace.Warning; | ||
import org.eclipse.che.api.workspace.server.spi.InternalEnvironment; | ||
import org.eclipse.che.api.workspace.server.spi.InternalMachineConfig; | ||
import org.eclipse.che.api.workspace.server.spi.InternalRecipe; | ||
import org.eclipse.che.workspace.infrastructure.docker.model.DockerEnvironment; | ||
|
||
/** | ||
* @author Alexander Garagatyi | ||
* @author Alexander Andrienko | ||
*/ | ||
public class ComposeInternalEnvironment extends InternalEnvironment { | ||
|
||
private final DockerEnvironment composeEnvironment; | ||
|
||
public ComposeInternalEnvironment( | ||
Map<String, InternalMachineConfig> machines, | ||
InternalRecipe recipe, | ||
List<Warning> warnings, | ||
DockerEnvironment composeEnvironment) | ||
throws ValidationException { | ||
super(machines, recipe, warnings); | ||
this.composeEnvironment = composeEnvironment; | ||
} | ||
|
||
public DockerEnvironment getComposeEnvironment() { | ||
return composeEnvironment; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.