pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
154 stars 24 forks source link

Perhaps a new function to resize a droplet #84

Closed sckott closed 9 years ago

sckott commented 9 years ago

I don't get resizing. It seems that the only way to actually do this is to power off, create image, then create a new droplet from that image of a bigger size. The API docs https://developers.digitalocean.com/v2/#resize-a-droplet make it look like you can resize an existing droplet just by powering off, resizing then powering back on, but this always errors, e.g.,

Error: Size can not be smaller than the Droplet's original size

and

Error: Size is too large to fit on your droplet's server

maybe I'm missing something?

sckott commented 9 years ago

Many are asking this question, eg., https://www.digitalocean.com/community/questions/droplet-resize-is-not-working

Could be worth creating a convenience function to handle all these steps in one function: