internal/component: Rework resource paths

This commit is contained in:
Tom Wiesing 2022-09-20 19:20:54 +02:00
parent af259747a2
commit 33cd18e9d9
No known key found for this signature in database
7 changed files with 4 additions and 4 deletions

View file

@ -15,12 +15,12 @@ func (SSH) Name() string {
return "ssh" return "ssh"
} }
//go:embed all:stack //go:embed all:ssh
var resources embed.FS var resources embed.FS
func (ssh SSH) Stack(env environment.Environment) component.StackWithResources { func (ssh SSH) Stack(env environment.Environment) component.StackWithResources {
return ssh.ComponentBase.MakeStack(env, component.StackWithResources{ return ssh.ComponentBase.MakeStack(env, component.StackWithResources{
Resources: resources, Resources: resources,
ContextPath: "stack", ContextPath: "ssh",
}) })
} }

View file

@ -23,13 +23,13 @@ func (Triplestore) Name() string {
return "triplestore" return "triplestore"
} }
//go:embed all:stack //go:embed all:triplestore
var resources embed.FS var resources embed.FS
func (ts Triplestore) Stack(env environment.Environment) component.StackWithResources { func (ts Triplestore) Stack(env environment.Environment) component.StackWithResources {
return ts.ComponentBase.MakeStack(env, component.StackWithResources{ return ts.ComponentBase.MakeStack(env, component.StackWithResources{
Resources: resources, Resources: resources,
ContextPath: "stack", ContextPath: "triplestore",
CopyContextFiles: []string{"graphdb.zip"}, // TODO: Move into constant? CopyContextFiles: []string{"graphdb.zip"}, // TODO: Move into constant?