digitalocean / digitalocean/droplet_kit
droplet_kit documentation/help
- Dominant language
- Ruby
- Stars
- 521
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am new to ruby and droplet_kit but I'm trying to learn. I have been using irb commands and not getting expected results. For example, after
```
require 'droplet_kit'
token = ENV['DO_TOKEN']
client = DropletKit::Client.new(access_token: token)
client.droplets.all
```
I get the following result ()
`=> ##, 200=>#}>, @resource=#"application/json", "Authorization"=>"Bearer SECRET", "User-Agent"=>"Faraday v0.9.2"}, @params={}, @options=#, @ssl=#, @default_parallel_manager=nil, @builder=#, @url_prefix=#, @proxy=nil>, @scope=nil>, @collection=[], @args=[], @options={}>`
Just by guessing and trial and error, I was able to get a better result with `client.droplets.all.each` and I saw another example using `client.droplets.all.first` but other than that, I have no idea what I am doing. :-)
My question is, where can I find a list of all available and valid options to `client.droplets.all()` and `client.images.all()` etc.?
My goal is to try to automate some things like taking snapshots (saw the snapshots.rb example but I need something more robust) and transferring the resulting images to different data centers and creating droplets based off those snapshot images. I'd like to be able to create some of the results I have seen with `knife digital_ocean` such as:
```
knife digital_ocean image list
ID Distribution Name Slug
1xxxxxx1 Debian production-live
1xxxxxx2 Debian production-live
```
Anything you can do to help would be greatly appreciated!
Cheers,
Ed
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.