knife-digital_ocean 2.3.3 → 2.4.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 +4 -0
- data/README.md +28 -8
- data/knife-digital_ocean.gemspec +1 -0
- data/lib/chef/knife/digital_ocean_droplet_create.rb +27 -2
- data/lib/chef/knife/digital_ocean_droplet_destroy.rb +7 -2
- data/lib/knife-digital_ocean/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/droplet_power.yml +13 -12
- data/spec/fixtures/vcr_cassettes/droplet_powercycle.yml +13 -74
- data/spec/fixtures/vcr_cassettes/droplet_reboot.yml +13 -74
- data/spec/fixtures/vcr_cassettes/droplet_rebuild.yml +14 -13
- data/spec/fixtures/vcr_cassettes/droplet_rename.yml +13 -74
- data/spec/fixtures/vcr_cassettes/droplet_resize.yml +14 -13
- data/spec/fixtures/vcr_cassettes/droplet_snapshot.yml +13 -1004
- data/spec/lib/chef/knife/digital_ocean_droplet_power_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_powercycle_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_reboot_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_rebuild_spec.rb +2 -2
- data/spec/lib/chef/knife/digital_ocean_droplet_rename_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_resize_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_snapshot_spec.rb +1 -1
- metadata +16 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/v2/droplets/
|
5
|
+
uri: https://api.digitalocean.com/v2/droplets/4829346/actions
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"type":"rename","name":"ilikelamp.com"}'
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
12
12
|
Authorization:
|
13
13
|
- Bearer FAKE_ACCESS_TOKEN
|
14
14
|
User-Agent:
|
15
|
-
- Faraday v0.9.
|
15
|
+
- Faraday v0.9.1
|
16
16
|
Accept-Encoding:
|
17
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
18
|
Accept:
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
Server:
|
26
26
|
- cloudflare-nginx
|
27
27
|
Date:
|
28
|
-
-
|
28
|
+
- Sat, 11 Apr 2015 23:34:51 GMT
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Transfer-Encoding:
|
@@ -42,86 +42,25 @@ http_interactions:
|
|
42
42
|
X-Content-Type-Options:
|
43
43
|
- nosniff
|
44
44
|
Ratelimit-Limit:
|
45
|
-
- '
|
45
|
+
- '5000'
|
46
46
|
Ratelimit-Remaining:
|
47
|
-
- '
|
47
|
+
- '4984'
|
48
48
|
Ratelimit-Reset:
|
49
|
-
- '
|
49
|
+
- '1428797844'
|
50
50
|
Etag:
|
51
|
-
- '"
|
51
|
+
- '"1acf5997250fb6d22a2af7ce0de3200d"'
|
52
52
|
Cache-Control:
|
53
53
|
- max-age=0, private, must-revalidate
|
54
54
|
X-Request-Id:
|
55
|
-
-
|
55
|
+
- 378ffab3-7930-4489-b425-08ce6381b250
|
56
56
|
X-Runtime:
|
57
|
-
- '0.
|
57
|
+
- '0.499969'
|
58
58
|
Cf-Ray:
|
59
|
-
-
|
59
|
+
- 1d5a812b501801ee-EWR
|
60
60
|
body:
|
61
61
|
encoding: UTF-8
|
62
|
-
string: '{"action":{"id":
|
62
|
+
string: '{"action":{"id":47949514,"status":"completed","type":"rename","started_at":"2015-04-11T23:34:51Z","completed_at":"2015-04-11T23:34:51Z","resource_id":4829346,"resource_type":"droplet","region":{"name":"New
|
63
|
+
York 3","slug":"nyc3","sizes":["512mb","1gb","2gb","4gb","8gb","16gb","32gb","48gb","64gb"],"features":["virtio","private_networking","backups","ipv6","metadata"],"available":true},"region_slug":"nyc3"}}'
|
63
64
|
http_version:
|
64
|
-
recorded_at:
|
65
|
-
- request:
|
66
|
-
method: get
|
67
|
-
uri: https://api.digitalocean.com/v2/droplets/3193966
|
68
|
-
body:
|
69
|
-
encoding: US-ASCII
|
70
|
-
string: ''
|
71
|
-
headers:
|
72
|
-
Content-Type:
|
73
|
-
- application/json
|
74
|
-
Authorization:
|
75
|
-
- Bearer FAKE_ACCESS_TOKEN
|
76
|
-
User-Agent:
|
77
|
-
- Faraday v0.9.0
|
78
|
-
Accept-Encoding:
|
79
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
80
|
-
Accept:
|
81
|
-
- "*/*"
|
82
|
-
response:
|
83
|
-
status:
|
84
|
-
code: 200
|
85
|
-
message: OK
|
86
|
-
headers:
|
87
|
-
Server:
|
88
|
-
- cloudflare-nginx
|
89
|
-
Date:
|
90
|
-
- Tue, 18 Nov 2014 01:49:49 GMT
|
91
|
-
Content-Type:
|
92
|
-
- application/json; charset=utf-8
|
93
|
-
Transfer-Encoding:
|
94
|
-
- chunked
|
95
|
-
Connection:
|
96
|
-
- keep-alive
|
97
|
-
Set-Cookie: _COOKIE_ID_
|
98
|
-
Status:
|
99
|
-
- 200 OK
|
100
|
-
X-Frame-Options:
|
101
|
-
- SAMEORIGIN
|
102
|
-
X-Xss-Protection:
|
103
|
-
- 1; mode=block
|
104
|
-
X-Content-Type-Options:
|
105
|
-
- nosniff
|
106
|
-
Ratelimit-Limit:
|
107
|
-
- '1200'
|
108
|
-
Ratelimit-Remaining:
|
109
|
-
- '1127'
|
110
|
-
Ratelimit-Reset:
|
111
|
-
- '1416275386'
|
112
|
-
Cache-Control:
|
113
|
-
- max-age=0, private, must-revalidate
|
114
|
-
X-Request-Id:
|
115
|
-
- c0d9f735-99fe-4be9-86ac-47582d589792
|
116
|
-
X-Runtime:
|
117
|
-
- '0.160562'
|
118
|
-
Cf-Ray:
|
119
|
-
- 18b0837da5ec0ec7-EWR
|
120
|
-
body:
|
121
|
-
encoding: UTF-8
|
122
|
-
string: '{"droplet":{"id":3193966,"name":"ilikelamp.com","memory":512,"vcpus":1,"disk":20,"locked":false,"status":"active","kernel":{"id":952,"name":"Debian
|
123
|
-
7.0 x64 vmlinuz-3.2.0-4-amd64 (3.2.54-2)","version":"3.2.0-4-amd64"},"created_at":"2014-11-18T00:29:26Z","features":["virtio"],"backup_ids":[],"snapshot_ids":[8073571],"image":{"id":8073571,"name":"rebuild-snapshot","distribution":"Debian","slug":null,"public":false,"regions":["nyc3","nyc3"],"created_at":"2014-11-18T00:58:36Z","min_disk_size":20},"size_slug":"512mb","networks":{"v4":[{"ip_address":"104.236.29.101","netmask":"255.255.192.0","gateway":"104.236.0.1","type":"public"}],"v6":[]},"region":{"name":"New
|
124
|
-
York 3","slug":"nyc3","sizes":["32gb","16gb","2gb","1gb","4gb","8gb","512mb","64gb","48gb"],"features":["virtio","private_networking","backups","ipv6","metadata"],"available":true}}}'
|
125
|
-
http_version:
|
126
|
-
recorded_at: Tue, 18 Nov 2014 01:49:49 GMT
|
65
|
+
recorded_at: Sat, 11 Apr 2015 23:34:52 GMT
|
127
66
|
recorded_with: VCR 2.9.3
|
@@ -2,17 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/v2/droplets/
|
5
|
+
uri: https://api.digitalocean.com/v2/droplets/4829346/actions
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"type":"resize","size":"1gb"}'
|
8
|
+
string: '{"type":"resize","size":"1gb","disk":null}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
12
12
|
Authorization:
|
13
13
|
- Bearer FAKE_ACCESS_TOKEN
|
14
14
|
User-Agent:
|
15
|
-
- Faraday v0.9.
|
15
|
+
- Faraday v0.9.1
|
16
16
|
Accept-Encoding:
|
17
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
18
|
Accept:
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
Server:
|
26
26
|
- cloudflare-nginx
|
27
27
|
Date:
|
28
|
-
-
|
28
|
+
- Sat, 11 Apr 2015 23:37:43 GMT
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Transfer-Encoding:
|
@@ -42,24 +42,25 @@ http_interactions:
|
|
42
42
|
X-Content-Type-Options:
|
43
43
|
- nosniff
|
44
44
|
Ratelimit-Limit:
|
45
|
-
- '
|
45
|
+
- '5000'
|
46
46
|
Ratelimit-Remaining:
|
47
|
-
- '
|
47
|
+
- '4979'
|
48
48
|
Ratelimit-Reset:
|
49
|
-
- '
|
49
|
+
- '1428797844'
|
50
50
|
Etag:
|
51
|
-
- '"
|
51
|
+
- '"abc150446d4f81eac47898a311f7ac96"'
|
52
52
|
Cache-Control:
|
53
53
|
- max-age=0, private, must-revalidate
|
54
54
|
X-Request-Id:
|
55
|
-
-
|
55
|
+
- fa8391bf-2725-4565-850a-c52db9a372f1
|
56
56
|
X-Runtime:
|
57
|
-
- '0.
|
57
|
+
- '0.273334'
|
58
58
|
Cf-Ray:
|
59
|
-
-
|
59
|
+
- 1d5a855d954c1834-EWR
|
60
60
|
body:
|
61
61
|
encoding: UTF-8
|
62
|
-
string: '{"action":{"id":
|
62
|
+
string: '{"action":{"id":47949627,"status":"in-progress","type":"resize","started_at":"2015-04-11T23:37:43Z","completed_at":null,"resource_id":4829346,"resource_type":"droplet","region":{"name":"New
|
63
|
+
York 3","slug":"nyc3","sizes":["512mb","1gb","2gb","4gb","8gb","16gb","32gb","48gb","64gb"],"features":["virtio","private_networking","backups","ipv6","metadata"],"available":true},"region_slug":"nyc3"}}'
|
63
64
|
http_version:
|
64
|
-
recorded_at:
|
65
|
+
recorded_at: Sat, 11 Apr 2015 23:37:43 GMT
|
65
66
|
recorded_with: VCR 2.9.3
|