DigitalOcean has released an official command line tool that has more features and will get more support. Please use doctl whenever possible (https://www.digitalocean.com/company/blog/introducing-doctl/)
A command line tool for interacting with DigitalOcean.
gem install docl
Currently it only supports a very limited subset of operations.
Run docl help
or docl command help
to get help.
To test the code run bundle exec docl ...
which will include your code changes.