Changed based level example so it can be copied.

The base level example doesn't actually work unless enclosed with a "builders" section. All fixed now.

Previous:

    {
      	"type": "googlecompute",
		"account_file": "account.json",
		"project_id": "my project",
		"source_image": "debian-7-wheezy-v20150127",
		"zone": "us-central1-a"
    }

Now:

	{
	  "builders": [
	    {
	      	"type": "googlecompute",
			"account_file": "account.json",
			"project_id": "my project",
			"source_image": "debian-7-wheezy-v20150127",
			"zone": "us-central1-a"
	    }
	  ]
	}
This commit is contained in:
Adron Hall 2016-07-14 07:05:46 -07:00 committed by GitHub
parent 2e949bf43d
commit a7de9d9a2f
1 changed files with 9 additions and 5 deletions

View File

@ -82,13 +82,17 @@ JSON it is assumed to be the file itself, otherwise it is assumed to be
the path to the file containing the JSON. the path to the file containing the JSON.
``` {.javascript} ``` {.javascript}
{
"builders": [
{ {
"type": "googlecompute", "type": "googlecompute",
"account_file": "account.json", "account_file": "account.json",
"project_id": "my-project", "project_id": "my project",
"source_image": "debian-7-wheezy-v20150127", "source_image": "debian-7-wheezy-v20150127",
"zone": "us-central1-a" "zone": "us-central1-a"
} }
]
}
``` ```
## Configuration Reference ## Configuration Reference