pachadotdev / analogsea

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

Only use droplets for functions that affect multiple droplets? #33

Closed hadley closed 10 years ago

hadley commented 10 years ago

e.g. droplets_kill(), but droplet_shutdown() ?

sckott commented 10 years ago

Good point. Almost all droplets_*() functions only affect one droplet, that's how the DO API is designed. The droplets_kill() function is just a wrapper to droplets_delete() with an lapply call to delete each droplet.

Do you think all droplets_*() functions should support actions on >1 droplet?

hadley commented 10 years ago

Yes - otherwise I think calling it droplet_*() is more intuitive.