2014-07-23 06:03:30 +02:00
|
|
|
package heroku
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
|
|
)
|
|
|
|
|
|
|
|
// resourceMap is the mapping of resources we support to their basic
|
|
|
|
// operations. This makes it easy to implement new resource types.
|
|
|
|
var resourceMap *resource.Map
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
resourceMap = &resource.Map{
|
|
|
|
Mapping: map[string]resource.Resource{
|
2014-07-23 21:33:28 +02:00
|
|
|
"heroku_addon": resource.Resource{
|
|
|
|
ConfigValidator: resource_heroku_addon_validation(),
|
|
|
|
Create: resource_heroku_addon_create,
|
|
|
|
Destroy: resource_heroku_addon_destroy,
|
|
|
|
Diff: resource_heroku_addon_diff,
|
|
|
|
Refresh: resource_heroku_addon_refresh,
|
|
|
|
Update: resource_heroku_addon_update,
|
|
|
|
},
|
|
|
|
|
2014-07-23 06:03:30 +02:00
|
|
|
"heroku_app": resource.Resource{
|
|
|
|
ConfigValidator: resource_heroku_app_validation(),
|
|
|
|
Create: resource_heroku_app_create,
|
|
|
|
Destroy: resource_heroku_app_destroy,
|
|
|
|
Diff: resource_heroku_app_diff,
|
|
|
|
Refresh: resource_heroku_app_refresh,
|
|
|
|
Update: resource_heroku_app_update,
|
|
|
|
},
|
2014-07-23 21:50:17 +02:00
|
|
|
|
|
|
|
"heroku_domain": resource.Resource{
|
|
|
|
ConfigValidator: resource_heroku_domain_validation(),
|
|
|
|
Create: resource_heroku_domain_create,
|
|
|
|
Destroy: resource_heroku_domain_destroy,
|
|
|
|
Diff: resource_heroku_domain_diff,
|
|
|
|
Refresh: resource_heroku_domain_refresh,
|
|
|
|
},
|
2014-07-30 00:45:12 +02:00
|
|
|
|
|
|
|
"heroku_drain": resource.Resource{
|
|
|
|
ConfigValidator: resource_heroku_drain_validation(),
|
|
|
|
Create: resource_heroku_drain_create,
|
|
|
|
Destroy: resource_heroku_drain_destroy,
|
|
|
|
Diff: resource_heroku_drain_diff,
|
|
|
|
Refresh: resource_heroku_drain_refresh,
|
|
|
|
},
|
2014-07-23 06:03:30 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|