terraform/builtin/provisioners/remote-exec/resource_provisioner.go

26 lines
546 B
Go
Raw Normal View History

package remoteexec
import (
"github.com/hashicorp/terraform/helper/config"
"github.com/hashicorp/terraform/terraform"
)
type ResourceProvisioner struct{}
func (p *ResourceProvisioner) Apply(
s *terraform.ResourceState,
c *terraform.ResourceConfig) (*terraform.ResourceState, error) {
panic("not implemented")
return s, nil
}
func (p *ResourceProvisioner) Validate(c *terraform.ResourceConfig) ([]string, []error) {
validator := config.Validator{
Optional: []string{
"command",
"inline",
},
}
return validator.Validate(c)
}