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 ssh
|
|||
|
||||
import (
|
||||
"embed"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
|
||||
|
|
@ -15,11 +16,19 @@ func (SSH) Name() string {
|
|||
return "ssh"
|
||||
}
|
||||
|
||||
func (ssh SSH) Path() string {
|
||||
return filepath.Join(ssh.Core.Config.DeployRoot, "core", ssh.Name())
|
||||
}
|
||||
|
||||
func (SSH) Context(parent component.InstallationContext) component.InstallationContext {
|
||||
return parent
|
||||
}
|
||||
|
||||
//go:embed all:ssh
|
||||
var resources embed.FS
|
||||
|
||||
func (ssh SSH) Stack(env environment.Environment) component.StackWithResources {
|
||||
return ssh.ComponentBase.MakeStack(env, component.StackWithResources{
|
||||
func (ssh *SSH) Stack(env environment.Environment) component.StackWithResources {
|
||||
return component.MakeStack(ssh, env, component.StackWithResources{
|
||||
Resources: resources,
|
||||
ContextPath: "ssh",
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue