Remove environment.Environment struct
This commit completely removes the environment struct as it is no longer used.
This commit is contained in:
parent
3263920d6b
commit
473040a69f
40 changed files with 91 additions and 146 deletions
|
|
@ -3,8 +3,6 @@ package component
|
|||
import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
|
||||
)
|
||||
|
||||
// Installable implements an installable component.
|
||||
|
|
@ -18,7 +16,7 @@ type Installable interface {
|
|||
// Stack can be used to gain access to the "docker compose" stack.
|
||||
//
|
||||
// This should internally call [ComponentBase.MakeStack]
|
||||
Stack(env environment.Environment) StackWithResources
|
||||
Stack() StackWithResources
|
||||
|
||||
// Context returns a new InstallationContext to be used during installation from the command line.
|
||||
// Typically this should just pass through the parent, but might perform other tasks.
|
||||
|
|
@ -26,8 +24,7 @@ type Installable interface {
|
|||
}
|
||||
|
||||
// MakeStack registers the Installable as a stack
|
||||
func MakeStack(component Installable, env environment.Environment, stack StackWithResources) StackWithResources {
|
||||
stack.Env = env
|
||||
func MakeStack(component Installable, stack StackWithResources) StackWithResources {
|
||||
stack.Dir = component.Path()
|
||||
return stack
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue