fog-digitalocean 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -2
- data/README.md +1 -2
- data/lib/fog/bin/digitalocean.rb +30 -0
- data/lib/fog/digitalocean/compute.rb +27 -15
- data/lib/fog/digitalocean/models/compute/volume.rb +15 -0
- data/lib/fog/digitalocean/models/compute/volumes.rb +42 -0
- data/lib/fog/digitalocean/requests/compute/attach_volume.rb +122 -0
- data/lib/fog/digitalocean/requests/compute/create_server.rb +2 -0
- data/lib/fog/digitalocean/requests/compute/create_volume.rb +50 -0
- data/lib/fog/digitalocean/requests/compute/destroy_volume.rb +32 -0
- data/lib/fog/digitalocean/requests/compute/detach_volume.rb +121 -0
- data/lib/fog/digitalocean/requests/compute/get_image_details.rb +1 -1
- data/lib/fog/digitalocean/requests/compute/get_volume_details.rb +60 -0
- data/lib/fog/digitalocean/requests/compute/list_volume_actions.rb +64 -0
- data/lib/fog/digitalocean/requests/compute/list_volumes.rb +64 -0
- data/lib/fog/digitalocean/requests/compute/resize_volume.rb +65 -0
- data/lib/fog/digitalocean/version.rb +1 -1
- data/tests/digitalocean/requests/compute/attach_volume_tests.rb +10 -0
- data/tests/digitalocean/requests/compute/create_volume_tests.rb +10 -0
- data/tests/digitalocean/requests/{compute_v2 → compute}/list_ssh_keys_tests.rb +2 -2
- data/tests/digitalocean/requests/compute/list_volumes_tests.rb +23 -0
- metadata +21 -136
- data/benchs/each_provider.sh +0 -6
- data/benchs/each_service.sh +0 -6
- data/benchs/fog_vs.rb +0 -106
- data/benchs/load_times.rb +0 -37
- data/benchs/params.rb +0 -43
- data/benchs/parse_vs_push.rb +0 -67
- data/spec/fog/account_spec.rb +0 -14
- data/spec/fog/billing_spec.rb +0 -14
- data/spec/fog/bin/atmos_spec.rb +0 -33
- data/spec/fog/bin/aws_spec.rb +0 -98
- data/spec/fog/bin/baremetalcloud_spec.rb +0 -33
- data/spec/fog/bin/bluebox_spec.rb +0 -55
- data/spec/fog/bin/brightbox_spec.rb +0 -30
- data/spec/fog/bin/clodo_spec.rb +0 -9
- data/spec/fog/bin/cloudsigma_spec.rb +0 -9
- data/spec/fog/bin/cloudstack_spec.rb +0 -9
- data/spec/fog/bin/digitalocean_spec.rb +0 -9
- data/spec/fog/bin/dnsimple_spec.rb +0 -9
- data/spec/fog/bin/dnsmadeeasy_spec.rb +0 -9
- data/spec/fog/bin/dreamhost_spec.rb +0 -9
- data/spec/fog/bin/dynect_spec.rb +0 -9
- data/spec/fog/bin/ecloud_spec.rb +0 -10
- data/spec/fog/bin/fogdocker_spec.rb +0 -10
- data/spec/fog/bin/glesys_spec.rb +0 -10
- data/spec/fog/bin/gogrid_spec.rb +0 -10
- data/spec/fog/bin/google_spec.rb +0 -10
- data/spec/fog/bin/ibm_spec.rb +0 -10
- data/spec/fog/bin/internetarchive_spec.rb +0 -10
- data/spec/fog/bin/joyent_spec.rb +0 -10
- data/spec/fog/bin/linode_spec.rb +0 -10
- data/spec/fog/bin/local_spec.rb +0 -10
- data/spec/fog/bin/ninefold_spec.rb +0 -10
- data/spec/fog/bin/opennebula_spec.rb +0 -10
- data/spec/fog/bin/openstack_spec.rb +0 -10
- data/spec/fog/bin/openvz_spec.rb +0 -10
- data/spec/fog/bin/ovirt_spec.rb +0 -10
- data/spec/fog/bin/powerdns_spec.rb +0 -9
- data/spec/fog/bin/profitbricks_spec.rb +0 -10
- data/spec/fog/bin/rackspace_spec.rb +0 -10
- data/spec/fog/bin/rage4_spec.rb +0 -10
- data/spec/fog/bin/riakcs_spec.rb +0 -10
- data/spec/fog/bin/sakuracloud_spec.rb +0 -10
- data/spec/fog/bin/serverlove_spec.rb +0 -10
- data/spec/fog/bin/softlayer_spec.rb +0 -10
- data/spec/fog/bin/stormondemand_spec.rb +0 -10
- data/spec/fog/bin/vcloud_spec.rb +0 -10
- data/spec/fog/bin/vclouddirector_spec.rb +0 -10
- data/spec/fog/bin/vmfusion_spec.rb +0 -10
- data/spec/fog/bin/voxel_spec.rb +0 -10
- data/spec/fog/bin/vsphere_spec.rb +0 -10
- data/spec/fog/bin/xenserver_spec.rb +0 -10
- data/spec/fog/bin/zerigo_spec.rb +0 -10
- data/spec/fog/bin_spec.rb +0 -161
- data/spec/fog/cdn_spec.rb +0 -14
- data/spec/fog/compute_spec.rb +0 -19
- data/spec/fog/dns_spec.rb +0 -19
- data/spec/fog/identity_spec.rb +0 -14
- data/spec/fog/image_spec.rb +0 -14
- data/spec/fog/metering_spec.rb +0 -14
- data/spec/fog/monitoring_spec.rb +0 -14
- data/spec/fog/network_spec.rb +0 -14
- data/spec/fog/orchestration_spec.rb +0 -14
- data/spec/fog/storage_spec.rb +0 -14
- data/spec/fog/support_spec.rb +0 -14
- data/spec/fog/volume_spec.rb +0 -14
- data/spec/fog/vpn_spec.rb +0 -14
- data/spec/fog/xml/connection_spec.rb +0 -33
- data/spec/helpers/bin.rb +0 -34
- data/spec/spec_helper.rb +0 -18
@@ -1,55 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
require "fog/bin"
|
3
|
-
require "helpers/bin"
|
4
|
-
|
5
|
-
describe Bluebox do
|
6
|
-
include Fog::BinSpec
|
7
|
-
|
8
|
-
let(:subject) { Bluebox }
|
9
|
-
|
10
|
-
describe "#services" do
|
11
|
-
it "includes all services" do
|
12
|
-
assert_includes Bluebox.services, :compute
|
13
|
-
assert_includes Bluebox.services, :dns
|
14
|
-
assert_includes Bluebox.services, :blb
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#class_for" do
|
19
|
-
describe "when requesting compute service" do
|
20
|
-
it "returns correct class" do
|
21
|
-
assert_equal Fog::Compute::Bluebox, Bluebox.class_for(:compute)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
describe "when requesting dns service" do
|
26
|
-
it "returns correct class" do
|
27
|
-
assert_equal Fog::DNS::Bluebox, Bluebox.class_for(:dns)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
describe "when requesting blb service" do
|
32
|
-
it "returns correct class" do
|
33
|
-
assert_equal Fog::Bluebox::BLB, Bluebox.class_for(:blb)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
describe "#[]" do
|
39
|
-
describe "when requesting compute service" do
|
40
|
-
it "returns instance" do
|
41
|
-
Fog::Compute::Bluebox.stub(:new, "instance") do
|
42
|
-
assert_equal "instance", Bluebox[:compute]
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe "when requesting dns service" do
|
48
|
-
it "returns instance" do
|
49
|
-
Fog::DNS::Bluebox.stub(:new, "instance") do
|
50
|
-
assert_equal "instance", Bluebox[:dns]
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
require "fog/bin"
|
3
|
-
require "helpers/bin"
|
4
|
-
|
5
|
-
describe Brightbox do
|
6
|
-
include Fog::BinSpec
|
7
|
-
|
8
|
-
let(:subject) { Brightbox }
|
9
|
-
|
10
|
-
describe "#services" do
|
11
|
-
it "includes all services" do
|
12
|
-
assert_includes Brightbox.services, :compute
|
13
|
-
assert_includes Brightbox.services, :storage
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
describe "#class_for" do
|
18
|
-
describe "when requesting compute service" do
|
19
|
-
it "returns correct class" do
|
20
|
-
assert_equal Fog::Compute::Brightbox, Brightbox.class_for(:compute)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
describe "when requesting storage service" do
|
25
|
-
it "returns correct class" do
|
26
|
-
assert_equal Fog::Storage::Brightbox, Brightbox.class_for(:storage)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
data/spec/fog/bin/clodo_spec.rb
DELETED
data/spec/fog/bin/dynect_spec.rb
DELETED
data/spec/fog/bin/ecloud_spec.rb
DELETED
data/spec/fog/bin/glesys_spec.rb
DELETED
data/spec/fog/bin/gogrid_spec.rb
DELETED
data/spec/fog/bin/google_spec.rb
DELETED
data/spec/fog/bin/ibm_spec.rb
DELETED
data/spec/fog/bin/joyent_spec.rb
DELETED
data/spec/fog/bin/linode_spec.rb
DELETED
data/spec/fog/bin/local_spec.rb
DELETED
data/spec/fog/bin/openvz_spec.rb
DELETED
data/spec/fog/bin/ovirt_spec.rb
DELETED
data/spec/fog/bin/rage4_spec.rb
DELETED
data/spec/fog/bin/riakcs_spec.rb
DELETED