diff --git a/examples/data-sources/forge_daemon/data-source.tf b/examples/data-sources/forge_daemon/data-source.tf index 06912d3..b723cab 100644 --- a/examples/data-sources/forge_daemon/data-source.tf +++ b/examples/data-sources/forge_daemon/data-source.tf @@ -1,4 +1,4 @@ -data "forge_daemon" "example" { +data "laravelforge_daemon" "example" { id = "some-value" server_id = "some-value" } diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 2d54c9a..c16c71f 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -1,3 +1,3 @@ -provider "forge" { +provider "laravelforge" { token = "API_TOKEN" } diff --git a/go.mod b/go.mod index bbbb8ab..453cfe1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/madewithlove/terraform-provider-forge +module github.com/madewithlove/terraform-provider-laravelforge go 1.19 diff --git a/internal/provider/daemon_data_source_test.go b/internal/provider/daemon_data_source_test.go index 9db2439..35049ed 100644 --- a/internal/provider/daemon_data_source_test.go +++ b/internal/provider/daemon_data_source_test.go @@ -9,7 +9,7 @@ import ( func TestAccDaemonDataSource(t *testing.T) { rnd := generateRandomResourceName() - name := "data.forge_daemon." + rnd + name := "data.laravelforge_daemon." + rnd resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -29,7 +29,7 @@ func TestAccDaemonDataSource(t *testing.T) { func testAccDaemonDataSourceConfig(resourceName string) string { return fmt.Sprintf(` -data "forge_daemon" "%[1]s" { +data "laravelforge_daemon" "%[1]s" { id = "123" server_id = "123" } diff --git a/internal/provider/provider_test.go b/internal/provider/provider_test.go index 970f888..6444b8c 100644 --- a/internal/provider/provider_test.go +++ b/internal/provider/provider_test.go @@ -13,7 +13,7 @@ import ( // CLI command executed to create a provider server to which the CLI can // reattach. var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){ - "forge": providerserver.NewProtocol6WithError(New("test")()), + "laravelforge": providerserver.NewProtocol6WithError(New("test")()), } func testAccPreCheck(t *testing.T) { diff --git a/internal/provider/resource_server_test.go b/internal/provider/resource_server_test.go index f0666f1..1045ff1 100644 --- a/internal/provider/resource_server_test.go +++ b/internal/provider/resource_server_test.go @@ -9,7 +9,7 @@ import ( func TestAccServerResource(t *testing.T) { rnd := generateRandomResourceName() - name := "forge_server." + rnd + name := "laravelforge_server." + rnd resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -29,7 +29,7 @@ func TestAccServerResource(t *testing.T) { func testServerConfig(resourceName string, platformName string) string { return fmt.Sprintf(` -resource "forge_server" "%[1]s" { +resource "laravelforge_server" "%[1]s" { platform = %[2]q credential_id = 1 } diff --git a/main.go b/main.go index e99fea2..0482b05 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,7 @@ import ( "log" "github.com/hashicorp/terraform-plugin-framework/providerserver" - "github.com/madewithlove/terraform-provider-forge/internal/provider" + "github.com/madewithlove/terraform-provider-laravelforge/internal/provider" ) // Run "go generate" to format example terraform files and generate the docs for the registry/website @@ -35,7 +35,7 @@ func main() { flag.Parse() opts := providerserver.ServeOpts{ - Address: "registry.terraform.io/madewithlove/forge", + Address: "registry.terraform.io/madewithlove/laravelforge", Debug: debug, }