provisioner/file: Skeleton files

This commit is contained in:
Armon Dadgar 2014-07-15 14:37:55 -07:00
parent 082790c4c1
commit a9cad200d8
5 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,10 @@
package main
import (
"github.com/hashicorp/terraform/builtin/provisioners/file"
"github.com/hashicorp/terraform/plugin"
)
func main() {
plugin.Serve(new(file.ResourceProvisioner))
}

View File

@ -0,0 +1 @@
package main

View File

@ -0,0 +1,17 @@
package file
import (
"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) (ws []string, es []error) {
return
}

View File

@ -0,0 +1 @@
package file

View File

@ -38,6 +38,7 @@ func init() {
BuiltinConfig.Provisioners = map[string]string{
"local-exec": "terraform-provisioner-local-exec",
"remote-exec": "terraform-provisioner-remote-exec",
"file": "terraform-provisioner-file",
}
}