mirror of
https://github.com/beclab/Olares
synced 2026-04-21 21:47:56 +00:00
19 lines
459 B
Go
19 lines
459 B
Go
package plugins
|
|
|
|
import (
|
|
"path"
|
|
|
|
"github.com/beclab/Olares/cli/pkg/common"
|
|
cc "github.com/beclab/Olares/cli/pkg/core/common"
|
|
"github.com/beclab/Olares/cli/pkg/core/connector"
|
|
"github.com/beclab/Olares/cli/pkg/utils"
|
|
)
|
|
|
|
type CopyEmbedFiles struct {
|
|
common.KubeAction
|
|
}
|
|
|
|
func (t *CopyEmbedFiles) Execute(runtime connector.Runtime) error {
|
|
var dst = path.Join(runtime.GetInstallerDir(), cc.BuildFilesCacheDir)
|
|
return utils.CopyEmbed(assets, ".", dst)
|
|
}
|