kitchen-digitalocean 0.10.6 → 0.10.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dda13045b2257dfc135440bc8b914c7d8aad2750482d95fbab8b4359b8569ff3
4
- data.tar.gz: cc679c57581330bb1f96a5a0242d9be8b409b9a65a762b198a989a1019112c6b
3
+ metadata.gz: fce6edc2a0bff67201d4a3db40ca1d786416028c164f099b5c1da82f16712c7b
4
+ data.tar.gz: 6d35e47885940bd14e7ffcc57cf7bdfc07dcbb418ca92b9fa2bee5e2bc3a1770
5
5
  SHA512:
6
- metadata.gz: 618a06bedb2511b70e094f7ac279aca2c2c2269a34ce5bdc57bc12353829a983271971ae2e302ff7ad260d557ec4630de44be0b0a6807181746d417a612b96f3
7
- data.tar.gz: fca4f2030644bcaa244f7b06043b3621cc7522be9365b217111f829227189bcbbcfa64faee67c2dd8b92c8dccdb903e1040fec217fb65280f787ba88463fc756
6
+ metadata.gz: 93e92da4e01c434468719368da2e8a971d8bf82c5688350e485cb14bdc57bd95907fb10fa72cd9e70eda8eb0336e5e40f4163b7813d23cb86af95941f12ce1ea
7
+ data.tar.gz: 4e0424a83db5049abcb667ecb3cfabd46f948b9c23f41396bc2e995fdac5c8706ea2e75fd8307716de5889cc87151accda5118f199c12973914b091bcb84976b
@@ -57,6 +57,26 @@ module Kitchen
57
57
  required_config :digitalocean_access_token
58
58
  required_config :ssh_key_ids
59
59
 
60
+ PLATFORM_SLUG_MAP = {
61
+ 'centos-6' => 'centos-6-x64',
62
+ 'centos-7' => 'centos-7-x64',
63
+ 'centos-8' => 'centos-8-x64',
64
+ 'coreos-stable' => 'coreos-stable',
65
+ 'coreos-beta' => 'coreos-beta',
66
+ 'coreos-alpha' => 'coreos-alpha',
67
+ 'debian-9' => 'debian-9-x64',
68
+ 'debian-10' => 'debian-10-x64',
69
+ 'fedora-30' => 'fedora-30-x64',
70
+ 'fedora-31' => 'fedora-31-x64',
71
+ 'fedora-32' => 'fedora-32-x64',
72
+ 'freebsd-11' => 'freebsd-11-x64-zfs',
73
+ 'freebsd-12' => 'freebsd-12-x64-zfs',
74
+ 'ubuntu-16' => 'ubuntu-16-04-x64',
75
+ 'ubuntu-18' => 'ubuntu-18-04-x64',
76
+ 'ubuntu-19' => 'ubuntu-19-10-x64',
77
+ 'ubuntu-20' => 'ubuntu-20-04-x64'
78
+ }.freeze
79
+
60
80
  def create(state)
61
81
  server = create_server
62
82
 
@@ -132,8 +152,8 @@ module Kitchen
132
152
  # platform => slug mappings, and falls back to using just the platform as
133
153
  # provided if it can't find a mapping.
134
154
  def default_image
135
- platform_to_slug_mapping.fetch(instance.platform.name,
136
- instance.platform.name)
155
+ PLATFORM_SLUG_MAP.fetch(instance.platform.name,
156
+ instance.platform.name)
137
157
  end
138
158
 
139
159
  # Generate what should be a unique server name up to 63 total chars
@@ -209,37 +229,6 @@ module Kitchen
209
229
  def debug_client_config
210
230
  debug("digitalocean_api_key #{config[:digitalocean_access_token]}")
211
231
  end
212
-
213
- def platform_to_slug_mapping
214
- {
215
- 'centos-6' => 'centos-6-x64',
216
- 'centos-7' => 'centos-7-x64',
217
- 'centos-8' => 'centos-8-x64',
218
- 'coreos-stable' => 'coreos-stable-x64',
219
- 'coreos-beta' => 'coreos-beta-x64',
220
- 'coreos-alpha' => 'coreos-alpha-x64',
221
- 'debian-7' => 'debian-7-x64',
222
- 'debian-8' => 'debian-8-x64',
223
- 'debian-9' => 'debian-9-x64',
224
- 'debian-10' => 'debian-10-x64',
225
- 'fedora-27' => 'fedora-27-x64',
226
- 'fedora-28' => 'fedora-28-x64',
227
- 'fedora-29' => 'fedora-29-x64',
228
- 'fedora-30' => 'fedora-30-x64',
229
- 'fedora-31' => 'fedora-31-x64',
230
- 'freebsd-12' => 'freebsd-12-x64-zfs',
231
- 'freebsd-11.2' => 'freebsd-11-2-x64-zfs',
232
- 'freebsd-11.1' => 'freebsd-11-1-x64-zfs',
233
- 'freebsd-11.0' => 'freebsd-11-0-x64-zfs',
234
- 'freebsd-10.3' => 'freebsd-10-3-x64-zfs',
235
- 'freebsd-10.4' => 'freebsd-10-4-x64-zfs',
236
- 'ubuntu-14' => 'ubuntu-14-04-x64',
237
- 'ubuntu-16' => 'ubuntu-16-04-x64',
238
- 'ubuntu-17' => 'ubuntu-17-10-x64',
239
- 'ubuntu-18' => 'ubuntu-18-04-x64',
240
- 'ubuntu-19' => 'ubuntu-19-04-x64'
241
- }
242
- end
243
232
  end
244
233
  end
245
234
  end
@@ -20,7 +20,7 @@
20
20
  module Kitchen
21
21
  module Driver
22
22
  # Version string for Digital Ocean Kitchen driver
23
- DIGITALOCEAN_VERSION = '0.10.6'
23
+ DIGITALOCEAN_VERSION = '0.10.7'
24
24
  end
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-digitalocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Fitzgerald
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-26 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: droplet_kit