Reuse a droplet or image by name
droplet_reuse(name, ...)
A name that could be a droplet or image name
Named options passed on to droplet_create
.
A droplet
Internally, we call the droplets
and
images
(with private = TRUE
) to get list of your
droplets and images - and we check against those.
if (FALSE) {
# matches droplet that exists
droplet_reuse(name = 'BeguiledAmmonia')
# matching image that exists
droplet_reuse(name = 'hadleyverse1', size = "1gb")
# no matching droplet or image
droplet_reuse(name = 'tablesandchairs')
}