github.com/YousefHaggyHeroku/pack@v1.5.5/internal/fakes/fake_lifecycle.go (about)

     1  package fakes
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/YousefHaggyHeroku/pack/internal/build"
     7  )
     8  
     9  type FakeLifecycle struct {
    10  	Opts build.LifecycleOptions
    11  }
    12  
    13  func (f *FakeLifecycle) Execute(ctx context.Context, opts build.LifecycleOptions) error {
    14  	f.Opts = opts
    15  	return nil
    16  }