internal/component: Rework resource paths
This commit is contained in:
parent
af259747a2
commit
33cd18e9d9
7 changed files with 4 additions and 4 deletions
|
|
@ -15,12 +15,12 @@ func (SSH) Name() string {
|
|||
return "ssh"
|
||||
}
|
||||
|
||||
//go:embed all:stack
|
||||
//go:embed all:ssh
|
||||
var resources embed.FS
|
||||
|
||||
func (ssh SSH) Stack(env environment.Environment) component.StackWithResources {
|
||||
return ssh.ComponentBase.MakeStack(env, component.StackWithResources{
|
||||
Resources: resources,
|
||||
ContextPath: "stack",
|
||||
ContextPath: "ssh",
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,13 +23,13 @@ func (Triplestore) Name() string {
|
|||
return "triplestore"
|
||||
}
|
||||
|
||||
//go:embed all:stack
|
||||
//go:embed all:triplestore
|
||||
var resources embed.FS
|
||||
|
||||
func (ts Triplestore) Stack(env environment.Environment) component.StackWithResources {
|
||||
return ts.ComponentBase.MakeStack(env, component.StackWithResources{
|
||||
Resources: resources,
|
||||
ContextPath: "stack",
|
||||
ContextPath: "triplestore",
|
||||
|
||||
CopyContextFiles: []string{"graphdb.zip"}, // TODO: Move into constant?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue