Skip to content

Commit

Permalink
feat(terraform): impl terraform apply and init ops
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsaw373 committed Apr 21, 2023
1 parent e159884 commit 0154ff3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkg/terraform/impl.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package terraform

import (
"context"
"fmt"
)

func (ter *Terraform) Init() error {
err := ter.Exec.Init(context.Background())
if err != nil {
return fmt.Errorf("error running Init: %w", err)
}

return nil
}

func (ter *Terraform) Apply() error {
err := ter.Exec.Apply(context.Background())
if err != nil {
return fmt.Errorf("error running Apply: %w", err)
}

return nil
}

0 comments on commit 0154ff3

Please sign in to comment.