Open krtschmr opened 8 years ago
Hey Tim,
client = DropletKit::Client.new(access_token: token)
droplet = DropletKit::Droplet.new(name: config[:name], region: config[:region], size: config[:size], image: config[:image], user_data: config[:user_data], ssh_keys: config[:ssh_keys].to_s.split, private_networking: config[:private_networking])
create = client.droplets.create(droplet)
while client.droplets.find(id: create.id.to_s).status != 'active' do print "." end
I pull the ID from the create var with the create.id.to_s
config if a hash of the settings I want for the system. Let me know if this helps.
Joshua
According to Documentation
actuall i get only a temp object
that means i have no id nor IP