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
This commit is contained in:
timolehto 2018-03-20 11:25:54 +02:00 committed by Timo Kilpilehto
parent 419afb4dcf
commit 9461034add
1 changed files with 4 additions and 1 deletions

View File

@ -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_path = response.parse['upload_path']
# Upload the box image # 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")
``` ```
</div> </div>
</div> </div>