kitchen-softlayer 1.0.0 → 1.1.0

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
  SHA1:
3
- metadata.gz: 013a71150cbda12647fd0f2e3d6ad97f2850d1f2
4
- data.tar.gz: 8f64d3f54079265ed045b44c40e130b9a4746d21
3
+ metadata.gz: a3406a2f341d68622e159f6b7db81f71b8d382d2
4
+ data.tar.gz: f4adeec6bd5a53ba3683c12c24aa04691577498f
5
5
  SHA512:
6
- metadata.gz: 7a8c6226624125539e56202788b6dd9bfc7216da135b5f4e771351be166f332cc8ef0cd7f0ba3c5137109c53c2fcb0a5e80f1d50c1a9b2b0844117d6a29cf019
7
- data.tar.gz: 907cd8365b975128a949da19c842832708488440914f7528f0a32b687a932dd0a2c3e2d3773380c212cb633bf96dc59f8876fcb3549445c48b546da38fef48e3
6
+ metadata.gz: 2fb580fdb8ffe7969fa5efbb8e29fb4c1fae4b461dc7e6504b3e999d8756fc75c226b68791e8a13ed79b792c4edc01cec0c9054bba943d06dbf38c0ed313d07c
7
+ data.tar.gz: 23a99f6c49e6199b8e2a33cfaeb82117a78cde171be5f9b3ac4c8ac7f30bc95555390e59ef103fcaa1d8c396bc93f8651942bd8124ea06b22421b2fe7063ae3d
@@ -1,4 +1,4 @@
1
- # Encoding: UTF-8
1
+ # frozen_string_literal: false
2
2
 
3
3
  lib = File.expand_path('../lib', __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.files = candidates.sort
19
19
  spec.require_paths = ['lib']
20
20
  spec.required_ruby_version = '>= 2.1.0'
21
- spec.add_dependency 'test-kitchen', '~> 1.4'
22
21
  spec.add_dependency 'fog', '~> 1.18'
23
22
  spec.add_dependency 'fog-softlayer', '~> 1'
23
+ spec.add_dependency 'test-kitchen', '~> 1.4'
24
24
  end
@@ -1,6 +1,5 @@
1
- # Encoding: utf-8
1
+ # frozen_string_literal: false
2
2
 
3
- #
4
3
  # Licensed under the Apache License, Version 2.0 (the "License");
5
4
  # you may not use this file except in compliance with the License.
6
5
  # You may obtain a copy of the License at
@@ -87,7 +86,7 @@ module Kitchen
87
86
  debug "fqdn: #{config[:fqdn]}"
88
87
  debug "server_name: #{config[:server_name]}"
89
88
  debug "server_name_prefix: #{config[:server_name_prefix]}"
90
- server = create_server unless find_server(config[:fqdn])
89
+ server = create_server if config[:fqdn].include?(config[:default_name]) || !find_server(config[:fqdn])
91
90
  state[:server_id] = server.id
92
91
  info "Softlayer instance <#{state[:server_id]}> created."
93
92
  server.wait_for do
@@ -131,7 +130,8 @@ module Kitchen
131
130
  config[:server_name] = if config[:server_name_prefix]
132
131
  server_name_prefix(config[:server_name_prefix])
133
132
  else
134
- default_name
133
+ config[:default_name] = default_name
134
+ config[:default_name].to_s
135
135
  end
136
136
  end
137
137
 
@@ -154,7 +154,7 @@ module Kitchen
154
154
  ssh = Fog::SSH.new(*new_state)
155
155
  begin
156
156
  ssh.run([%(uname -a)])
157
- rescue => e
157
+ rescue StandardError => e
158
158
  info "Server not yet accepting SSH key: #{e.message}"
159
159
  sleep 1
160
160
  else
@@ -281,7 +281,7 @@ module Kitchen
281
281
  when :private_vlan
282
282
  find_network(config[c])
283
283
  when :image_id
284
- return config[c] if config[c].match('^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
284
+ return config[c] if config[c].match?('^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
285
285
  find_image(config[c])
286
286
  else
287
287
  config[c]
@@ -1,6 +1,5 @@
1
- # Encoding: UTF-8
1
+ # frozen_string_literal: false
2
2
 
3
- #
4
3
  # Licensed under the Apache License, Version 2.0 (the "License");
5
4
  # you may not use this file except in compliance with the License.
6
5
  # You may obtain a copy of the License at
@@ -16,6 +15,6 @@
16
15
  module Kitchen
17
16
  # Version string for Softlayer Kitchen driver
18
17
  module Driver
19
- SOFTLAYER_VERSION = '1.0.0'.freeze
18
+ SOFTLAYER_VERSION = '1.1.0'.freeze
20
19
  end
21
20
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-25 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: test-kitchen
14
+ name: fog
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.4'
19
+ version: '1.18'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.4'
26
+ version: '1.18'
27
27
  - !ruby/object:Gem::Dependency
28
- name: fog
28
+ name: fog-softlayer
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.18'
33
+ version: '1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.18'
40
+ version: '1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: fog-softlayer
42
+ name: test-kitchen
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1'
47
+ version: '1.4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1'
54
+ version: '1.4'
55
55
  description: A Test Kitchen Softlayer driver
56
56
  email:
57
57
  - neillwturner@gmail.com
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.4.5.1
88
+ rubygems_version: 2.6.13
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Test Kitchen Softlayer driver