analogsea (version 0.5.0)

droplet_reuse: Reuse a droplet or image by name

Description

Reuse a droplet or image by name

Usage

droplet_reuse(name, ...)

Arguments

name

A name that could be a droplet or image name

...

Named options passed on to droplet_create.

Value

A droplet

Details

Internally, we call the droplets and images (with private = TRUE) to get list of your droplets and images - and we check against those.

Examples

Run this code
# NOT RUN {
# 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')
# }

Run the code above in your browser using DataCamp Workspace