internal/component: Cleanup unused general code
This commit is contained in:
parent
a5d9b1a386
commit
84974dd712
12 changed files with 127 additions and 92 deletions
|
|
@ -2,6 +2,7 @@ package control
|
|||
|
||||
import (
|
||||
"embed"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/component/instances"
|
||||
|
|
@ -22,11 +23,15 @@ func (control Control) Name() string {
|
|||
return "dis" // TODO: Rename this to control!
|
||||
}
|
||||
|
||||
func (control Control) Path() string {
|
||||
return filepath.Join(control.Core.Config.DeployRoot, "core", control.Name())
|
||||
}
|
||||
|
||||
//go:embed all:control control.env
|
||||
var resources embed.FS
|
||||
|
||||
func (control Control) Stack(env environment.Environment) component.StackWithResources {
|
||||
return control.ComponentBase.MakeStack(env, component.StackWithResources{
|
||||
func (control *Control) Stack(env environment.Environment) component.StackWithResources {
|
||||
return component.MakeStack(control, env, component.StackWithResources{
|
||||
Resources: resources,
|
||||
ContextPath: "control",
|
||||
EnvPath: "control.env",
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func (control Control) ResolverConfigPath() string {
|
||||
return filepath.Join(control.Dir, control.ResolverFile)
|
||||
return filepath.Join(control.Path(), control.ResolverFile)
|
||||
}
|
||||
|
||||
func (control Control) resolver(io stream.IOStream) (p wdresolve.ResolveHandler, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue