Skip to content

Commit

Permalink
fix(cloud): Populate rootfs deployer message for prompting
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Jan 21, 2025
1 parent 712aa82 commit 3f817cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/cli/kraft/cloud/deploy/deployer_rootfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ import (
"kraftkit.sh/unikraft/target"
)

type deployerRootfs struct{}
type deployerRootfs struct {
opts *DeployOptions
}

func (deployer *deployerRootfs) Name() string {
return "rootfs"
}

func (deployer *deployerRootfs) String() string {
return ""
return fmt.Sprintf("run the supplied rootfs '%s' on '%s' runtime", deployer.opts.Rootfs, deployer.opts.Project.Runtime().Name())
}

func (deployer *deployerRootfs) Deployable(ctx context.Context, opts *DeployOptions, args ...string) (bool, error) {
Expand Down Expand Up @@ -103,6 +105,8 @@ func (deployer *deployerRootfs) Deployable(ctx context.Context, opts *DeployOpti
}
}

deployer.opts = opts

return true, nil
}

Expand Down

0 comments on commit 3f817cc

Please sign in to comment.