github.com/tam7t/terraform@v0.7.0-rc2.0.20160705125922-be2469a05c5e/builtin/bins/provider-test/main.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/builtin/providers/test"
     5  	"github.com/hashicorp/terraform/plugin"
     6  	"github.com/hashicorp/terraform/terraform"
     7  )
     8  
     9  func main() {
    10  	plugin.Serve(&plugin.ServeOpts{
    11  		ProviderFunc: func() terraform.ResourceProvider {
    12  			return test.Provider()
    13  		},
    14  	})
    15  }