From 9461034addadafbaf109bf3636a4e57f00bfbf73 Mon Sep 17 00:00:00 2001 From: timolehto Date: Tue, 20 Mar 2018 11:25:54 +0200 Subject: [PATCH] ruby ex missing a step & upload use wrong verb Creating a usable box from scratch - api only accepts puts no push when uploading the file - the final step of actually releasing the version was missing from ruby example --- website/source/docs/vagrant-cloud/api.html.md.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/source/docs/vagrant-cloud/api.html.md.erb b/website/source/docs/vagrant-cloud/api.html.md.erb index 228c82234..2f323709c 100644 --- a/website/source/docs/vagrant-cloud/api.html.md.erb +++ b/website/source/docs/vagrant-cloud/api.html.md.erb @@ -234,7 +234,10 @@ In order to create a usable box on Vagrant Cloud, perform the following steps: upload_path = response.parse['upload_path'] # Upload the box image - HTTP.post upload_path, body: File.open("virtualbox-1.2.3.box") + HTTP.put upload_path, body: File.open("virtualbox-1.2.3.box") + + # Release the version + api.put("/api/v1/box/myuser/test/version/1.2.3/release") ```