This commit cleans up the resources in the 'embed' package, and instead moves them into subpackages of a new 'compose' package. This makes sure that '.env' templates and docker compose contexts are located in the same location.
26 lines
429 B
Go
26 lines
429 B
Go
package ssh
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/FAU-CDI/wisski-distillery/component"
|
|
"github.com/FAU-CDI/wisski-distillery/internal/stack"
|
|
)
|
|
|
|
type SSH struct {
|
|
component.ComponentBase
|
|
}
|
|
|
|
func (SSH) Name() string {
|
|
return "ssh"
|
|
}
|
|
|
|
//go:embed all:stack
|
|
var resources embed.FS
|
|
|
|
func (ssh SSH) Stack() stack.Installable {
|
|
return ssh.ComponentBase.MakeStack(stack.Installable{
|
|
Resources: resources,
|
|
ContextPath: "stack",
|
|
})
|
|
}
|