component: Automatically determine names

This commit is contained in:
Tom Wiesing 2022-10-17 20:39:53 +02:00
parent 10df1c3243
commit e320bb37bb
No known key found for this signature in database
31 changed files with 84 additions and 113 deletions

View file

@ -22,12 +22,8 @@ type SQL struct {
lazyNetwork lazy.Lazy[string]
}
func (*SQL) Name() string {
return "sql"
}
func (sql *SQL) Path() string {
return filepath.Join(sql.Core.Config.DeployRoot, "core", sql.Name())
return filepath.Join(sql.Still.Config.DeployRoot, "core", "sql")
}
func (*SQL) Context(parent component.InstallationContext) component.InstallationContext {