digitalocean 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.env-example +2 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +68 -0
- data/Rakefile +1 -0
- data/digitalocean.gemspec +28 -0
- data/lib/digitalocean.rb +71 -0
- data/lib/digitalocean/droplet.rb +57 -0
- data/lib/digitalocean/image.rb +11 -0
- data/lib/digitalocean/region.rb +11 -0
- data/lib/digitalocean/size.rb +11 -0
- data/lib/digitalocean/ssh_key.rb +21 -0
- data/lib/digitalocean/version.rb +3 -0
- data/spec/digitalocean/droplet_spec.rb +52 -0
- data/spec/digitalocean/image_spec.rb +24 -0
- data/spec/digitalocean/region_spec.rb +24 -0
- data/spec/digitalocean/size_spec.rb +24 -0
- data/spec/digitalocean/ssh_key_spec.rb +24 -0
- data/spec/digitalocean_spec.rb +29 -0
- data/spec/spec_helper.rb +23 -0
- metadata +192 -0
data/.env-example
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Scott Motte
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# Digitalocean Ruby Bindings
|
2
|
+
|
3
|
+
This gem is a wrapper for [DigitalOcean.com](https://www.digitalocean.com)'s API.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'digitalocean'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install digitalocean
|
18
|
+
|
19
|
+
Then in your application initialize the gem:
|
20
|
+
|
21
|
+
$ Digitalocean.client_id = "your_client_id"
|
22
|
+
$ Digitalocean.api_key = "your_api_key"
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
### List Droplets
|
27
|
+
|
28
|
+
$ Digitalocean::Droplet.all
|
29
|
+
|
30
|
+
### Retrieve Droplet
|
31
|
+
|
32
|
+
$ Digitalocean::Droplet.retrieve("id_of_droplet")
|
33
|
+
|
34
|
+
### Create Droplet
|
35
|
+
|
36
|
+
$ Digitalocean::Document.create({:name => droplet_name, :size_id => size_id, :image_id => image_id, :region_id => region_id)
|
37
|
+
|
38
|
+
## Available Commands
|
39
|
+
|
40
|
+
$ Digitalocean::Droplet.all
|
41
|
+
$ Digitalocean::Droplet.retrieve(id)
|
42
|
+
$ Digitalocean::Droplet.create({})
|
43
|
+
$ Digitalocean::Droplet.reboot(id)
|
44
|
+
$ Digitalocean::Droplet.power_cycle(id)
|
45
|
+
$ Digitalocean::Droplet.shut_down(id)
|
46
|
+
$ Digitalocean::Droplet.power_off(id)
|
47
|
+
$ Digitalocean::Droplet.power_on(id)
|
48
|
+
$ Digitalocean::Droplet.snapshot(id)
|
49
|
+
$ Digitalocean::Image.all
|
50
|
+
$ Digitalocean::Region.all
|
51
|
+
$ Digitalocean::Size.all
|
52
|
+
$ Digitalocean::SshKey.all
|
53
|
+
$ Digitalocean::SshKey.retrieve(id)
|
54
|
+
$ Digitalocean::SshKey.create({})
|
55
|
+
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
1. Fork it
|
59
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
60
|
+
5. Commit your changes (`git commit -am 'Add some feature'`)
|
61
|
+
6. Push to the branch (`git push origin my-new-feature`)
|
62
|
+
7. Create new Pull Request
|
63
|
+
|
64
|
+
## Running Specs
|
65
|
+
|
66
|
+
1. cp .env-example .env
|
67
|
+
2. Set your credentials in the .env file
|
68
|
+
3. bundle exec foreman run bundle exec rspec spec/digitalocean/*
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'digitalocean/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "digitalocean"
|
8
|
+
gem.version = Digitalocean::VERSION
|
9
|
+
gem.authors = ["scottmotte"]
|
10
|
+
gem.email = ["scott@scottmotte.com"]
|
11
|
+
gem.description = %q{Ruby bindings for the Digital Ocean API.}
|
12
|
+
gem.summary = %q{Ruby bindings for the Digital Ocean API.}
|
13
|
+
gem.homepage = "http://github.com/scottmotte/digitalocean"
|
14
|
+
|
15
|
+
gem.add_dependency "faraday"
|
16
|
+
gem.add_dependency "faraday_middleware"
|
17
|
+
gem.add_dependency "recursive-open-struct"
|
18
|
+
|
19
|
+
gem.add_development_dependency "foreman"
|
20
|
+
gem.add_development_dependency "pry"
|
21
|
+
gem.add_development_dependency "rake"
|
22
|
+
gem.add_development_dependency "rspec"
|
23
|
+
|
24
|
+
gem.files = `git ls-files`.split($/)
|
25
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
26
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
27
|
+
gem.require_paths = ["lib"]
|
28
|
+
end
|
data/lib/digitalocean.rb
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
require "faraday"
|
2
|
+
require "faraday_middleware"
|
3
|
+
require "recursive-open-struct"
|
4
|
+
require "digitalocean/version"
|
5
|
+
require "digitalocean/droplet"
|
6
|
+
require "digitalocean/image"
|
7
|
+
require "digitalocean/region"
|
8
|
+
require "digitalocean/size"
|
9
|
+
require "digitalocean/ssh_key"
|
10
|
+
|
11
|
+
module Digitalocean
|
12
|
+
extend self
|
13
|
+
|
14
|
+
def request=(request)
|
15
|
+
@request = request
|
16
|
+
end
|
17
|
+
|
18
|
+
def request
|
19
|
+
@request
|
20
|
+
end
|
21
|
+
|
22
|
+
def client_id=(client_id)
|
23
|
+
@client_id = client_id
|
24
|
+
setup_request!
|
25
|
+
|
26
|
+
@client_id
|
27
|
+
end
|
28
|
+
|
29
|
+
def client_id
|
30
|
+
return @client_id if @client_id
|
31
|
+
"missing_client_id"
|
32
|
+
end
|
33
|
+
|
34
|
+
def api_key=(api_key)
|
35
|
+
@api_key = api_key
|
36
|
+
setup_request!
|
37
|
+
|
38
|
+
@api_key
|
39
|
+
end
|
40
|
+
|
41
|
+
def api_key
|
42
|
+
return @api_key if @api_key
|
43
|
+
"missing_api_key"
|
44
|
+
end
|
45
|
+
|
46
|
+
def api_endpoint
|
47
|
+
"https://api.digitalocean.com"
|
48
|
+
end
|
49
|
+
|
50
|
+
def credential_attrs
|
51
|
+
{:client_id => Digitalocean.client_id, :api_key => Digitalocean.api_key}
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
def setup_request!
|
57
|
+
options = {
|
58
|
+
:headers => {'Accept' => "application/json"},
|
59
|
+
:ssl => {:verify => false},
|
60
|
+
:url => Digitalocean.api_endpoint,
|
61
|
+
:params => Digitalocean.credential_attrs
|
62
|
+
}
|
63
|
+
|
64
|
+
Digitalocean.request = ::Faraday::Connection.new(options) do |builder|
|
65
|
+
builder.use ::Faraday::Request::UrlEncoded
|
66
|
+
builder.use ::FaradayMiddleware::ParseJson
|
67
|
+
builder.use ::FaradayMiddleware::FollowRedirects
|
68
|
+
builder.adapter ::Faraday.default_adapter
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module Digitalocean
|
2
|
+
class Droplet
|
3
|
+
#
|
4
|
+
# Api calls
|
5
|
+
#
|
6
|
+
def self.all
|
7
|
+
response = Digitalocean.request.get "droplets"
|
8
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.retrieve(droplet_id)
|
12
|
+
response = Digitalocean.request.get "droplets/#{droplet_id}"
|
13
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.reboot(droplet_id=nil)
|
17
|
+
response = Digitalocean.request.get "droplets/#{droplet_id}/reboot"
|
18
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.power_cycle(droplet_id=nil)
|
22
|
+
response = Digitalocean.request.get "droplets/#{droplet_id}/power_cycle"
|
23
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.shut_down(droplet_id=nil)
|
27
|
+
response = Digitalocean.request.get "droplets/#{droplet_id}/shut_down"
|
28
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.power_off(droplet_id=nil)
|
32
|
+
response = Digitalocean.request.get "droplets/#{droplet_id}/power_off"
|
33
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.power_on(droplet_id=nil)
|
37
|
+
response = Digitalocean.request.get "droplets/#{droplet_id}/power_on"
|
38
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.snapshot(droplet_id=nil, snapshot_name=nil)
|
42
|
+
response = Digitalocean.request.get "droplets/#{droplet_id}/snapshot", {:name => snapshot_name}
|
43
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
44
|
+
end
|
45
|
+
|
46
|
+
# attrs = {
|
47
|
+
# :name => droplet_name,
|
48
|
+
# :size_id => size_id,
|
49
|
+
# :image_id => image_id,
|
50
|
+
# :region_id => region_id
|
51
|
+
# }
|
52
|
+
def self.create(attrs)
|
53
|
+
response = Digitalocean.request.get "droplets/new", attrs
|
54
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Digitalocean
|
2
|
+
class SshKey
|
3
|
+
#
|
4
|
+
# Api calls
|
5
|
+
#
|
6
|
+
def self.all
|
7
|
+
response = Digitalocean.request.get "ssh_keys"
|
8
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.retrieve(ssh_key_id=nil)
|
12
|
+
response = Digitalocean.request.get "ssh_keys/#{ssh_key_id}"
|
13
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.create(attrs)
|
17
|
+
response = Digitalocean.request.get "ssh_keys/new"
|
18
|
+
RecursiveOpenStruct.new(response.body, :recurse_over_arrays => true)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Digitalocean::Droplet do
|
4
|
+
let(:ok) { "OK" }
|
5
|
+
let(:subject) { Digitalocean::Droplet }
|
6
|
+
|
7
|
+
context "correct api key" do
|
8
|
+
before do
|
9
|
+
set_client_id_and_api_key!
|
10
|
+
end
|
11
|
+
|
12
|
+
describe ".all" do
|
13
|
+
before do
|
14
|
+
@response = subject.all
|
15
|
+
end
|
16
|
+
|
17
|
+
context "default" do
|
18
|
+
it do
|
19
|
+
@response.status.should eq ok
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe ".retrieve" do
|
24
|
+
before do
|
25
|
+
droplet_id = @response.droplets.first.id
|
26
|
+
@response2 = subject.retrieve(droplet_id)
|
27
|
+
end
|
28
|
+
|
29
|
+
context "default" do
|
30
|
+
it do
|
31
|
+
@response2.status.should eq ok
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe ".snapshot" do
|
37
|
+
let(:snapshot_name) { ["digitalocean_spec_", SecureRandom.hex(15)].join }
|
38
|
+
|
39
|
+
before do
|
40
|
+
droplet_id = @response.droplets.first.id
|
41
|
+
@response2 = subject.snapshot(droplet_id, snapshot_name)
|
42
|
+
end
|
43
|
+
|
44
|
+
context "default" do
|
45
|
+
it do
|
46
|
+
@response2.status.should eq ok
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Digitalocean::Image do
|
4
|
+
let(:ok) { "OK" }
|
5
|
+
let(:subject) { Digitalocean::Image }
|
6
|
+
|
7
|
+
context "correct api key" do
|
8
|
+
before do
|
9
|
+
set_client_id_and_api_key!
|
10
|
+
end
|
11
|
+
|
12
|
+
describe ".all" do
|
13
|
+
before do
|
14
|
+
@response = subject.all
|
15
|
+
end
|
16
|
+
|
17
|
+
context "default" do
|
18
|
+
it do
|
19
|
+
@response.status.should eq ok
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Digitalocean::Region do
|
4
|
+
let(:ok) { "OK" }
|
5
|
+
let(:subject) { Digitalocean::Region }
|
6
|
+
|
7
|
+
context "correct api key" do
|
8
|
+
before do
|
9
|
+
set_client_id_and_api_key!
|
10
|
+
end
|
11
|
+
|
12
|
+
describe ".all" do
|
13
|
+
before do
|
14
|
+
@response = subject.all
|
15
|
+
end
|
16
|
+
|
17
|
+
context "default" do
|
18
|
+
it do
|
19
|
+
@response.status.should eq ok
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Digitalocean::Size do
|
4
|
+
let(:ok) { "OK" }
|
5
|
+
let(:subject) { Digitalocean::Size }
|
6
|
+
|
7
|
+
context "correct api key" do
|
8
|
+
before do
|
9
|
+
set_client_id_and_api_key!
|
10
|
+
end
|
11
|
+
|
12
|
+
describe ".all" do
|
13
|
+
before do
|
14
|
+
@response = subject.all
|
15
|
+
end
|
16
|
+
|
17
|
+
context "default" do
|
18
|
+
it do
|
19
|
+
@response.status.should eq ok
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Digitalocean::SshKey do
|
4
|
+
let(:ok) { "OK" }
|
5
|
+
let(:subject) { Digitalocean::SshKey }
|
6
|
+
|
7
|
+
context "correct api key" do
|
8
|
+
before do
|
9
|
+
set_client_id_and_api_key!
|
10
|
+
end
|
11
|
+
|
12
|
+
describe ".all" do
|
13
|
+
before do
|
14
|
+
@response = subject.all
|
15
|
+
end
|
16
|
+
|
17
|
+
context "default" do
|
18
|
+
it do
|
19
|
+
@response.status.should eq ok
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Digitalocean do
|
4
|
+
subject { Digitalocean }
|
5
|
+
|
6
|
+
describe "defaults" do
|
7
|
+
before do
|
8
|
+
subject.client_id = nil
|
9
|
+
subject.api_key = nil
|
10
|
+
end
|
11
|
+
|
12
|
+
it { subject.api_endpoint.should eq "https://api.digitalocean.com" }
|
13
|
+
it { subject.client_id.should eq "missing_client_id" }
|
14
|
+
it { subject.api_key.should eq "missing_api_key" }
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "setting values" do
|
18
|
+
let(:client_id) { "1234" }
|
19
|
+
let(:api_key) { "adf3434938492fjkdfj" }
|
20
|
+
|
21
|
+
before do
|
22
|
+
subject.client_id = client_id
|
23
|
+
subject.api_key = api_key
|
24
|
+
end
|
25
|
+
|
26
|
+
it { subject.client_id.should eq client_id }
|
27
|
+
it { subject.api_key.should eq api_key }
|
28
|
+
end
|
29
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
require 'pry'
|
4
|
+
require 'digitalocean'
|
5
|
+
require 'securerandom'
|
6
|
+
|
7
|
+
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.before(:suite) do
|
11
|
+
# FakeWeb.allow_net_connect = false
|
12
|
+
set_client_id_and_api_key!
|
13
|
+
end
|
14
|
+
|
15
|
+
# config.after(:suite) do
|
16
|
+
# FakeWeb.allow_net_connect = true
|
17
|
+
# end
|
18
|
+
end
|
19
|
+
|
20
|
+
def set_client_id_and_api_key!
|
21
|
+
Digitalocean.client_id = ENV['DIGITALOCEAN_CLIENT_ID']
|
22
|
+
Digitalocean.api_key = ENV['DIGITALOCEAN_API_KEY']
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: digitalocean
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- scottmotte
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: faraday
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: faraday_middleware
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: recursive-open-struct
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: foreman
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: pry
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rake
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
description: Ruby bindings for the Digital Ocean API.
|
127
|
+
email:
|
128
|
+
- scott@scottmotte.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- .env-example
|
134
|
+
- .gitignore
|
135
|
+
- .rspec
|
136
|
+
- Gemfile
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- digitalocean.gemspec
|
141
|
+
- lib/digitalocean.rb
|
142
|
+
- lib/digitalocean/droplet.rb
|
143
|
+
- lib/digitalocean/image.rb
|
144
|
+
- lib/digitalocean/region.rb
|
145
|
+
- lib/digitalocean/size.rb
|
146
|
+
- lib/digitalocean/ssh_key.rb
|
147
|
+
- lib/digitalocean/version.rb
|
148
|
+
- spec/digitalocean/droplet_spec.rb
|
149
|
+
- spec/digitalocean/image_spec.rb
|
150
|
+
- spec/digitalocean/region_spec.rb
|
151
|
+
- spec/digitalocean/size_spec.rb
|
152
|
+
- spec/digitalocean/ssh_key_spec.rb
|
153
|
+
- spec/digitalocean_spec.rb
|
154
|
+
- spec/spec_helper.rb
|
155
|
+
homepage: http://github.com/scottmotte/digitalocean
|
156
|
+
licenses: []
|
157
|
+
post_install_message:
|
158
|
+
rdoc_options: []
|
159
|
+
require_paths:
|
160
|
+
- lib
|
161
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
hash: -2294789901462925887
|
170
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ! '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
segments:
|
177
|
+
- 0
|
178
|
+
hash: -2294789901462925887
|
179
|
+
requirements: []
|
180
|
+
rubyforge_project:
|
181
|
+
rubygems_version: 1.8.23
|
182
|
+
signing_key:
|
183
|
+
specification_version: 3
|
184
|
+
summary: Ruby bindings for the Digital Ocean API.
|
185
|
+
test_files:
|
186
|
+
- spec/digitalocean/droplet_spec.rb
|
187
|
+
- spec/digitalocean/image_spec.rb
|
188
|
+
- spec/digitalocean/region_spec.rb
|
189
|
+
- spec/digitalocean/size_spec.rb
|
190
|
+
- spec/digitalocean/ssh_key_spec.rb
|
191
|
+
- spec/digitalocean_spec.rb
|
192
|
+
- spec/spec_helper.rb
|