dorb 0.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +16 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +198 -0
- data/Rakefile +4 -0
- data/dorb.gemspec +30 -0
- data/lib/dorb.rb +18 -0
- data/lib/dorb/config.rb +36 -0
- data/lib/dorb/core_ext/hash.rb +24 -0
- data/lib/dorb/droplet.rb +10 -0
- data/lib/dorb/image.rb +10 -0
- data/lib/dorb/region.rb +10 -0
- data/lib/dorb/resource.rb +126 -0
- data/lib/dorb/size.rb +16 -0
- data/lib/dorb/ssh_key.rb +10 -0
- data/lib/dorb/version.rb +3 -0
- data/spec/config_spec.rb +34 -0
- data/spec/droplet_spec.rb +7 -0
- data/spec/fixtures/cassettes/DORB_Droplet/all.yml +57 -0
- data/spec/fixtures/cassettes/DORB_Droplet/find.yml +111 -0
- data/spec/fixtures/cassettes/DORB_Droplet/find_missing.yml +57 -0
- data/spec/fixtures/cassettes/DORB_Image/all.yml +75 -0
- data/spec/fixtures/cassettes/DORB_Image/find.yml +129 -0
- data/spec/fixtures/cassettes/DORB_Image/find_missing.yml +57 -0
- data/spec/fixtures/cassettes/DORB_Region/all.yml +58 -0
- data/spec/fixtures/cassettes/DORB_Region/find.yml +112 -0
- data/spec/fixtures/cassettes/DORB_Region/find_missing.yml +57 -0
- data/spec/fixtures/cassettes/DORB_SSHKey/all.yml +57 -0
- data/spec/fixtures/cassettes/DORB_SSHKey/find.yml +113 -0
- data/spec/fixtures/cassettes/DORB_SSHKey/find_missing.yml +57 -0
- data/spec/fixtures/cassettes/DORB_Size/all.yml +597 -0
- data/spec/fixtures/cassettes/DORB_Size/find.yml +651 -0
- data/spec/fixtures/cassettes/DORB_Size/find_missing.yml +57 -0
- data/spec/image_spec.rb +7 -0
- data/spec/region_spec.rb +7 -0
- data/spec/size_spec.rb +19 -0
- data/spec/spec_helper.rb +17 -0
- data/spec/ssh_key_spec.rb +7 -0
- data/spec/support/shared_examples_for_resource.rb +40 -0
- data/spec/support/vcr.rb +8 -0
- metadata +209 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.digitalocean.com/images/0?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 13 Mar 2013 12:15:59 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- '200'
|
33
|
+
X-Powered-By:
|
34
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
Etag:
|
40
|
+
- ! '"2e7ec6c1e4a03895b00aa3a340b5637e"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWRhMTA3ODA5OWE0NDdlMzczZjYyMmY1ZWU3YjIzZmZlBjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIgF7aHR0cHM6Ly93d3cuZGlnaXRhbG9jZWFuLmNvbS9hcGkvaW1hZ2VzLzA%2FY2xpZW50X2lkPTg0VTlxSHdlMk43M2RFb1BGVnFLeiZhcGlfa2V5PXFROG1wUmlFWWczdU82T3JMVFRlSkQxRHZQR0VRaFZtTWVIdkRyM2RtBjsARg%3D%3D--71d8d9d9b035145be28f1410078e1a5091a841dc;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- db25e2629868828a0f694303bad90cd3
|
48
|
+
X-Runtime:
|
49
|
+
- '0.376800'
|
50
|
+
X-Rack-Cache:
|
51
|
+
- miss
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":"ERROR","error_message":"No Image Found"}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Wed, 13 Mar 2013 12:15:58 GMT
|
57
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.digitalocean.com/regions?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 13 Mar 2013 12:15:54 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- '200'
|
33
|
+
X-Powered-By:
|
34
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
Etag:
|
40
|
+
- ! '"6f472d2a870e01c5f53d1892d1d463d8"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTFjY2Y4ODdkZGM0Mzk2MmU0N2U1NDcyMGUzNGM4MGIxBjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIn9odHRwczovL3d3dy5kaWdpdGFsb2NlYW4uY29tL2FwaS9yZWdpb25zP2NsaWVudF9pZD04NFU5cUh3ZTJONzNkRW9QRlZxS3omYXBpX2tleT1xUThtcFJpRVlnM3VPNk9yTFRUZUpEMUR2UEdFUWhWbU1lSHZEcjNkbQY7AEY%3D--9afb44f7c89d51810dc6ea170112b8619c153b60;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- 2244ec24c8e5ba77cb2ee3ff3b9e65c2
|
48
|
+
X-Runtime:
|
49
|
+
- '0.163347'
|
50
|
+
X-Rack-Cache:
|
51
|
+
- miss
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":"OK","regions":[{"id":1,"name":"New York 1"},{"id":2,"name":"Amsterdam
|
55
|
+
1"}]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Wed, 13 Mar 2013 12:15:52 GMT
|
58
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,112 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.digitalocean.com/regions?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 13 Mar 2013 12:15:54 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- '200'
|
33
|
+
X-Powered-By:
|
34
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
Etag:
|
40
|
+
- ! '"6f472d2a870e01c5f53d1892d1d463d8"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWExMTFlYWY2MjIzNjM3ZjQ2YzI3NDU4NGY1ZmRiY2I4BjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIn9odHRwczovL3d3dy5kaWdpdGFsb2NlYW4uY29tL2FwaS9yZWdpb25zP2NsaWVudF9pZD04NFU5cUh3ZTJONzNkRW9QRlZxS3omYXBpX2tleT1xUThtcFJpRVlnM3VPNk9yTFRUZUpEMUR2UEdFUWhWbU1lSHZEcjNkbQY7AEY%3D--1cbb4ce524c65023ed9f18d37c61c7c3b6ed8169;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- dd7cd0a83ffc4148237e2c7873ac298e
|
48
|
+
X-Runtime:
|
49
|
+
- '0.158223'
|
50
|
+
X-Rack-Cache:
|
51
|
+
- miss
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":"OK","regions":[{"id":1,"name":"New York 1"},{"id":2,"name":"Amsterdam
|
55
|
+
1"}]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Wed, 13 Mar 2013 12:15:53 GMT
|
58
|
+
- request:
|
59
|
+
method: get
|
60
|
+
uri: https://api.digitalocean.com/regions/1?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
61
|
+
body:
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: ''
|
64
|
+
headers:
|
65
|
+
Accept:
|
66
|
+
- ! '*/*; q=0.5, application/xml'
|
67
|
+
Accept-Encoding:
|
68
|
+
- gzip, deflate
|
69
|
+
User-Agent:
|
70
|
+
- Ruby
|
71
|
+
response:
|
72
|
+
status:
|
73
|
+
code: 200
|
74
|
+
message: OK
|
75
|
+
headers:
|
76
|
+
Server:
|
77
|
+
- nginx
|
78
|
+
Date:
|
79
|
+
- Wed, 13 Mar 2013 12:15:55 GMT
|
80
|
+
Content-Type:
|
81
|
+
- application/json; charset=utf-8
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Connection:
|
85
|
+
- keep-alive
|
86
|
+
Status:
|
87
|
+
- '200'
|
88
|
+
X-Powered-By:
|
89
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000
|
92
|
+
X-Ua-Compatible:
|
93
|
+
- IE=Edge,chrome=1
|
94
|
+
Etag:
|
95
|
+
- ! '"d6e7cb75570d0fdcbfc9dd677f82baa7"'
|
96
|
+
Cache-Control:
|
97
|
+
- max-age=0, private, must-revalidate
|
98
|
+
Set-Cookie:
|
99
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTlmMTY3NmJjMGQ2MmI5MGUyNWNiODlmMGYzMmY5YjJhBjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIgF8aHR0cHM6Ly93d3cuZGlnaXRhbG9jZWFuLmNvbS9hcGkvcmVnaW9ucy8xP2NsaWVudF9pZD04NFU5cUh3ZTJONzNkRW9QRlZxS3omYXBpX2tleT1xUThtcFJpRVlnM3VPNk9yTFRUZUpEMUR2UEdFUWhWbU1lSHZEcjNkbQY7AEY%3D--9dfc803fd362bb6c4f9fdcb240ab17796d22ba18;
|
100
|
+
path=/; secure; HttpOnly
|
101
|
+
X-Request-Id:
|
102
|
+
- 6fb80102420e24e9eeebf2e89eb04c14
|
103
|
+
X-Runtime:
|
104
|
+
- '0.149489'
|
105
|
+
X-Rack-Cache:
|
106
|
+
- miss
|
107
|
+
body:
|
108
|
+
encoding: US-ASCII
|
109
|
+
string: ! '{"status":"OK","region":{"id":1,"name":"New York 1"}}'
|
110
|
+
http_version:
|
111
|
+
recorded_at: Wed, 13 Mar 2013 12:15:53 GMT
|
112
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.digitalocean.com/regions/0?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 13 Mar 2013 12:15:56 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- '200'
|
33
|
+
X-Powered-By:
|
34
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
Etag:
|
40
|
+
- ! '"62871641d7b237c367b60f415e364158"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTI3YzFhZGYxYzZiNTdmNzdiYjAxMWNlN2I0NTYzMDMzBjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIgF8aHR0cHM6Ly93d3cuZGlnaXRhbG9jZWFuLmNvbS9hcGkvcmVnaW9ucy8wP2NsaWVudF9pZD04NFU5cUh3ZTJONzNkRW9QRlZxS3omYXBpX2tleT1xUThtcFJpRVlnM3VPNk9yTFRUZUpEMUR2UEdFUWhWbU1lSHZEcjNkbQY7AEY%3D--4e79eb73ebfba22984453fba8a283cd7634f2368;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- 0d4d3b582f1b97611707207e7e68fc04
|
48
|
+
X-Runtime:
|
49
|
+
- '0.179041'
|
50
|
+
X-Rack-Cache:
|
51
|
+
- miss
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":"ERROR","error_message":"No Region Found"}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Wed, 13 Mar 2013 12:15:54 GMT
|
57
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.digitalocean.com/ssh_keys?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 13 Mar 2013 12:15:48 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- '200'
|
33
|
+
X-Powered-By:
|
34
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
Etag:
|
40
|
+
- ! '"4d6514594b37b691cc3205224865cf87"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJThlOWY0NWVjN2NjZWUzZDc4ZjgwOWY2NmQ0NTMxNTNlBjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIgF7aHR0cHM6Ly93d3cuZGlnaXRhbG9jZWFuLmNvbS9hcGkvc3NoX2tleXM%2FY2xpZW50X2lkPTg0VTlxSHdlMk43M2RFb1BGVnFLeiZhcGlfa2V5PXFROG1wUmlFWWczdU82T3JMVFRlSkQxRHZQR0VRaFZtTWVIdkRyM2RtBjsARg%3D%3D--d386df5f4058a0a779ed8a7347efec60c66f17a3;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- e4273f7b5db6c706615ecba8a8798c2c
|
48
|
+
X-Runtime:
|
49
|
+
- '0.171559'
|
50
|
+
X-Rack-Cache:
|
51
|
+
- miss
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":"OK","ssh_keys":[{"id":6484,"name":"darrin@exempla.co.uk"}]}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Wed, 13 Mar 2013 12:15:46 GMT
|
57
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,113 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.digitalocean.com/ssh_keys?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 13 Mar 2013 12:15:49 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- '200'
|
33
|
+
X-Powered-By:
|
34
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
Etag:
|
40
|
+
- ! '"4d6514594b37b691cc3205224865cf87"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTUxYmU5NjIzYzkyMTVmNDI0ZGNmYTUyYjdjM2Y5NjRkBjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIgF7aHR0cHM6Ly93d3cuZGlnaXRhbG9jZWFuLmNvbS9hcGkvc3NoX2tleXM%2FY2xpZW50X2lkPTg0VTlxSHdlMk43M2RFb1BGVnFLeiZhcGlfa2V5PXFROG1wUmlFWWczdU82T3JMVFRlSkQxRHZQR0VRaFZtTWVIdkRyM2RtBjsARg%3D%3D--3792a7a3520a1c37b79cbce0a8718ddf16c8d154;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- 9edb7b9801d47e2a1067a7bc20b4d03d
|
48
|
+
X-Runtime:
|
49
|
+
- '0.177388'
|
50
|
+
X-Rack-Cache:
|
51
|
+
- miss
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":"OK","ssh_keys":[{"id":6484,"name":"darrin@exempla.co.uk"}]}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Wed, 13 Mar 2013 12:15:47 GMT
|
57
|
+
- request:
|
58
|
+
method: get
|
59
|
+
uri: https://api.digitalocean.com/ssh_keys/6484?api_key=<API_KEY>&client_id=<CLIENT_ID>
|
60
|
+
body:
|
61
|
+
encoding: US-ASCII
|
62
|
+
string: ''
|
63
|
+
headers:
|
64
|
+
Accept:
|
65
|
+
- ! '*/*; q=0.5, application/xml'
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip, deflate
|
68
|
+
User-Agent:
|
69
|
+
- Ruby
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Server:
|
76
|
+
- nginx
|
77
|
+
Date:
|
78
|
+
- Wed, 13 Mar 2013 12:15:49 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- '200'
|
87
|
+
X-Powered-By:
|
88
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
89
|
+
Strict-Transport-Security:
|
90
|
+
- max-age=31536000
|
91
|
+
X-Ua-Compatible:
|
92
|
+
- IE=Edge,chrome=1
|
93
|
+
Etag:
|
94
|
+
- ! '"2ab43a9aee01b3b149c8eb9efca75bfc"'
|
95
|
+
Cache-Control:
|
96
|
+
- max-age=0, private, must-revalidate
|
97
|
+
Set-Cookie:
|
98
|
+
- _digitalocean2_session_v2=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTFkMDU0MzU5ZWEwZjY0YTU4YTI1MzMwZDg2YzNjYjY0BjsAVEkiEXJlZGlyZWN0X3VybAY7AEZJIgGAaHR0cHM6Ly93d3cuZGlnaXRhbG9jZWFuLmNvbS9hcGkvc3NoX2tleXMvNjQ4ND9jbGllbnRfaWQ9ODRVOXFId2UyTjczZEVvUEZWcUt6JmFwaV9rZXk9cVE4bXBSaUVZZzN1TzZPckxUVGVKRDFEdlBHRVFoVm1NZUh2RHIzZG0GOwBG--53f038bfcab90df5b09d2bfe1c3bef7748a4e045;
|
99
|
+
path=/; secure; HttpOnly
|
100
|
+
X-Request-Id:
|
101
|
+
- fa2035889e5b019704647fe8b050f4b2
|
102
|
+
X-Runtime:
|
103
|
+
- '0.153466'
|
104
|
+
X-Rack-Cache:
|
105
|
+
- miss
|
106
|
+
body:
|
107
|
+
encoding: US-ASCII
|
108
|
+
string: ! '{"status":"OK","ssh_key":{"id":6484,"name":"darrin@exempla.co.uk","ssh_pub_key":"ssh-dss
|
109
|
+
AAAAB3NzaC1kc3MAAAEBAOZLyI0m+4wJvqAvqRtcn9apell65nUSSE+xIeafUDC0diqV/wV0tBGOH+4bNVtJ7ZiO1ClXfP1024XcWNv/JhILwEBe0sz7ahvGkBOsKhngi4RU0D8RDe1BnHR24S6z6hN3u60ooGtnDHtUWOH4g/eeT31cLkjg7pHTxEGaC+KYx4OwMCupl7ZfaOsomU/5/pTdv8t/tmGIcOakaLWWzAplwwtV/XO8ZDG9rMhKCndtkJyj2iOifURLRXH3a0DV4za6h87pmTpH+38ezhj4GikyjDjcA0hrYmLu1sbuaPkG0yoGTztcuK5L1J22L6A7fPpPcUQrn/ZPvrTnU6t6GtMAAAAVAPCWKCN8ITAioEhwdLQQVAoXp0gRAAABAQCWJu1uZjIqNXKUxSEL8ZtZeAyziwgOIT7FGWm/NpqdbtTtQVsgYKEQtj3CTyOexrfJ0pFa0f0aS13YVo0gRxm0I3i4cw7j+mEcdDZ5nkZxRNOBc5aCc+16zE8wU/0MPbm7kT+qgUHCioClGH0IlGbbYAsF/rS52ZwEzqHYDCi3kFj6mgEwsWv8HmqhfUg5lqCkftJJYPKCFxruHWynIaONHmSx1cmUp8WaGWXjX9hSF7K6o2RpfF713ERuL5Xbw9nzl9ySmy24fCKoMtpXFR0fZ7iz1qV9N7TZG1GnrqYfVeP1LftZaOcxvp5bJ7mZuF/t40XsNsbPVE1gF6QatKjvAAABAFSghCYM0GIelctLnMlgGDj87TBWMKBQ6d64nXLuYUTYrsdIxIwgrPsjA2Y3+lvjMGcdzqieW70g5F1ei2IlwpeTqXnKOa8QQn25zF/ublO6GpBrWOCx5Pqz8C7yqT4DCidxOICPVoZZB6BMkCkTLpgHdv3CoisJAbtlEr3f5bAVAOHG5p2dudpo5FH6Dc3nH4EeQLMmc9bnH85WNLVeCIqCiZ1Q3GbzUcvKkenYKhDUjPFQbBwpcDt0Zd2YMVfl9snaU4NIRAIB9w+ICEvkJ31Es9UFoft+2TdXOtzj5O9zq8b3OT9JPWt0dbeQxcfYTeZz+yHhnyq8bSPRkV8jkZM=
|
110
|
+
darrin@exempla.co.uk"}}'
|
111
|
+
http_version:
|
112
|
+
recorded_at: Wed, 13 Mar 2013 12:15:48 GMT
|
113
|
+
recorded_with: VCR 2.4.0
|