class Kitsune::Kit::Provisioner

def public_ip(droplet)

Extracts the public IP from a DropletKit::Droplet
def public_ip(droplet)
  v4 = droplet.networks.v4.find { |n| n.type == "public" }
  v4 ? v4.ip_address : "(no public IP yet)"
end