test-kitchen 3.7.0 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -4
  3. data/LICENSE +1 -1
  4. data/Rakefile +2 -2
  5. data/lib/kitchen/base64_stream.rb +5 -5
  6. data/lib/kitchen/chef_utils_wiring.rb +2 -2
  7. data/lib/kitchen/cli.rb +1 -1
  8. data/lib/kitchen/collection.rb +1 -1
  9. data/lib/kitchen/color.rb +2 -2
  10. data/lib/kitchen/command/action.rb +1 -1
  11. data/lib/kitchen/command/console.rb +1 -1
  12. data/lib/kitchen/command/diagnose.rb +1 -1
  13. data/lib/kitchen/command/doctor.rb +1 -1
  14. data/lib/kitchen/command/exec.rb +1 -1
  15. data/lib/kitchen/command/list.rb +3 -3
  16. data/lib/kitchen/command/login.rb +1 -1
  17. data/lib/kitchen/command/package.rb +1 -1
  18. data/lib/kitchen/command/sink.rb +1 -1
  19. data/lib/kitchen/command/test.rb +1 -1
  20. data/lib/kitchen/command.rb +6 -6
  21. data/lib/kitchen/config.rb +2 -2
  22. data/lib/kitchen/configurable.rb +3 -3
  23. data/lib/kitchen/data_munger.rb +3 -3
  24. data/lib/kitchen/diagnostic.rb +2 -2
  25. data/lib/kitchen/driver/base.rb +1 -1
  26. data/lib/kitchen/driver/dummy.rb +1 -1
  27. data/lib/kitchen/driver/exec.rb +1 -1
  28. data/lib/kitchen/driver/proxy.rb +1 -1
  29. data/lib/kitchen/driver/ssh_base.rb +1 -1
  30. data/lib/kitchen/driver.rb +1 -1
  31. data/lib/kitchen/errors.rb +1 -1
  32. data/lib/kitchen/generator/init.rb +2 -2
  33. data/lib/kitchen/instance.rb +9 -9
  34. data/lib/kitchen/lazy_hash.rb +1 -1
  35. data/lib/kitchen/lifecycle_hooks.rb +1 -1
  36. data/lib/kitchen/loader/yaml.rb +5 -5
  37. data/lib/kitchen/logger.rb +1 -1
  38. data/lib/kitchen/logging.rb +1 -1
  39. data/lib/kitchen/login_command.rb +2 -2
  40. data/lib/kitchen/metadata_chopper.rb +1 -1
  41. data/lib/kitchen/platform.rb +1 -1
  42. data/lib/kitchen/platform_filter.rb +4 -2
  43. data/lib/kitchen/plugin.rb +1 -1
  44. data/lib/kitchen/plugin_base.rb +1 -1
  45. data/lib/kitchen/provisioner/base.rb +120 -4
  46. data/lib/kitchen/provisioner/chef/berkshelf.rb +2 -2
  47. data/lib/kitchen/provisioner/chef/common_sandbox.rb +2 -2
  48. data/lib/kitchen/provisioner/chef/policyfile.rb +11 -5
  49. data/lib/kitchen/provisioner/chef_apply.rb +3 -3
  50. data/lib/kitchen/provisioner/chef_base.rb +7 -7
  51. data/lib/kitchen/provisioner/chef_infra.rb +2 -2
  52. data/lib/kitchen/provisioner/chef_solo.rb +1 -1
  53. data/lib/kitchen/provisioner/chef_target.rb +4 -4
  54. data/lib/kitchen/provisioner/dummy.rb +1 -1
  55. data/lib/kitchen/provisioner/shell.rb +1 -1
  56. data/lib/kitchen/provisioner.rb +1 -1
  57. data/lib/kitchen/rake_tasks.rb +1 -1
  58. data/lib/kitchen/shell_out.rb +2 -2
  59. data/lib/kitchen/ssh.rb +3 -3
  60. data/lib/kitchen/state_file.rb +2 -2
  61. data/lib/kitchen/suite.rb +1 -1
  62. data/lib/kitchen/thor_tasks.rb +1 -1
  63. data/lib/kitchen/transport/base.rb +1 -1
  64. data/lib/kitchen/transport/dummy.rb +1 -1
  65. data/lib/kitchen/transport/exec.rb +2 -2
  66. data/lib/kitchen/transport/ssh.rb +5 -3
  67. data/lib/kitchen/transport/winrm.rb +2 -2
  68. data/lib/kitchen/transport.rb +2 -2
  69. data/lib/kitchen/util.rb +2 -2
  70. data/lib/kitchen/verifier/base.rb +2 -2
  71. data/lib/kitchen/verifier/busser.rb +1 -1
  72. data/lib/kitchen/verifier/dummy.rb +1 -1
  73. data/lib/kitchen/verifier/shell.rb +1 -1
  74. data/lib/kitchen/verifier.rb +1 -1
  75. data/lib/kitchen/version.rb +2 -2
  76. data/lib/kitchen/which.rb +1 -1
  77. data/lib/kitchen.rb +1 -1
  78. data/lib/vendor/hash_recursive_merge.rb +1 -1
  79. data/templates/driver/license_apachev2.erb +1 -1
  80. data/templates/driver/license_lgplv3.erb +1 -1
  81. data/templates/init/kitchen.yml.erb +2 -2
  82. data/test-kitchen.gemspec +1 -1
  83. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78dcb8180d72d9ce32f3cf860d2dbb90d4c66ba2920cdf03252717bd4674a3f5
4
- data.tar.gz: fc68fb60b6fa811425c3079a317946414cfca980198e4e668fbcc0e4c507841a
3
+ metadata.gz: b2b9e6d594b61d9e569f8051f34251c4c1c4c531618c70d382558f34c2b4fbdb
4
+ data.tar.gz: 6703f8a68a196806e858011fdc1a7695e5e48c936a8e86c550ce8369aba82174
5
5
  SHA512:
6
- metadata.gz: 04e4ddf2b8c612db3a71ef7a7d720c5f586813f8ba3263415d56385f41e90b89663e2c4091fbbd03f60ff4c8922413988df086c71a93fbf7a396f903303b03d9
7
- data.tar.gz: 93131c18cdc7889dd9c2e477c598a409ae4d1b47a865fdf4bba6ae54da6b48de59bfc1c7b57015b0dc011a311762e18b13c13955e8e45cc95f852807845d4073
6
+ metadata.gz: 36e39c93bc5d66d0d46b790f927ee54c412c6467fd61c72a981721511814c1681925232851a437013a1a4c3ee250cc73ae251b057931db9024dab20596c31db9
7
+ data.tar.gz: 930266c1bc9c86e98def9eb3e78cf9bde2d8106a13fa831f1f56a88a3ca3d9b48f2c9508df077a4e414add79ef792b47255870c0ff7a12351f238501cdb138f8
data/Gemfile CHANGED
@@ -7,8 +7,8 @@ group :test do
7
7
  gem "rb-readline"
8
8
  gem "aruba", ">= 0.11", "< 3.0"
9
9
  gem "countloc", "~> 0.4"
10
- gem "cucumber", ">= 9.2", "< 10"
11
- gem "fakefs", "~> 2.0"
10
+ gem "cucumber", ">= 9.2", "< 11"
11
+ gem "fakefs", "~> 3.0"
12
12
  gem "maruku", "~> 0.6"
13
13
  gem "minitest", "~> 5.3", "< 6.0"
14
14
  gem "mocha", "~> 2.0"
@@ -21,6 +21,6 @@ group :integration do
21
21
  gem "kitchen-vagrant"
22
22
  end
23
23
 
24
- group :chefstyle do
25
- gem "chefstyle", "2.2.3"
24
+ group :linting do
25
+ gem "cookstyle", "~> 8.2"
26
26
  end
data/LICENSE CHANGED
@@ -6,7 +6,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
6
6
  you may not use this file except in compliance with the License.
7
7
  You may obtain a copy of the License at
8
8
 
9
- http://www.apache.org/licenses/LICENSE-2.0
9
+ https://www.apache.org/licenses/LICENSE-2.0
10
10
 
11
11
  Unless required by applicable law or agreed to in writing, software
12
12
  distributed under the License is distributed on an "AS IS" BASIS,
data/Rakefile CHANGED
@@ -29,13 +29,13 @@ task :stats do
29
29
  end
30
30
 
31
31
  begin
32
- require "chefstyle"
32
+ require "cookstyle/chefstyle"
33
33
  require "rubocop/rake_task"
34
34
  RuboCop::RakeTask.new(:style) do |task|
35
35
  task.options += ["--display-cop-names", "--no-color"]
36
36
  end
37
37
  rescue LoadError
38
- puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking."
38
+ puts "cookstyle/chefstyle is not available. (sudo) gem install cookstyle to do style checking."
39
39
  end
40
40
 
41
41
  desc "Run all quality tasks"
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -21,9 +21,9 @@ module Kitchen
21
21
  #
22
22
  # @author Fletcher Nichol <fnichol@nichol.ca>
23
23
  module Base64Stream
24
- # Encodes an input stream into a Base64 output stream. The input and ouput
24
+ # Encodes an input stream into a Base64 output stream. The input and output
25
25
  # objects must be opened IO resources. In other words, opening and closing
26
- # the resources are not the responsibilty of this method.
26
+ # the resources are not the responsibility of this method.
27
27
  #
28
28
  # @param io_in [#read] input stream
29
29
  # @param io_out [#write] output stream
@@ -33,9 +33,9 @@ module Kitchen
33
33
  buffer = nil # rubocop:disable Lint/UselessAssignment
34
34
  end
35
35
 
36
- # Decodes a Base64 input stream into an output stream. The input and ouput
36
+ # Decodes a Base64 input stream into an output stream. The input and output
37
37
  # objects must be opened IO resources. In other words, opening and closing
38
- # the resources are not the responsibilty of this method.
38
+ # the resources are not the responsibility of this method.
39
39
  #
40
40
  # @param io_in [#read] input stream
41
41
  # @param io_out [#write] output stream
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -24,7 +24,7 @@ module Kitchen
24
24
  def __config
25
25
  # this would need to be some kind of Chef::Config looking thing, which probably requires
26
26
  # a translation object from t-k config to Chef::Config layout if that ever becomes necessary.
27
- # this ISNT the t-k config.
27
+ # this ISN'T the t-k config.
28
28
  {}
29
29
  end
30
30
 
data/lib/kitchen/cli.rb CHANGED
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
data/lib/kitchen/color.rb CHANGED
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
 
18
18
  module Kitchen
19
- # Utility methods to help ouput colorized text in a terminal. The
19
+ # Utility methods to help output colorized text in a terminal. The
20
20
  # implementation is a compressed mashup of code from the Thor and Foreman
21
21
  # projects.
22
22
  #
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -4,7 +4,7 @@
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -71,7 +71,7 @@ module Kitchen
71
71
  # Format and color the given last action.
72
72
  #
73
73
  # @param last_action [String] the last action
74
- # @return [String] formated last action
74
+ # @return [String] formatted last action
75
75
  # @api private
76
76
  def format_last_action(last_action)
77
77
  case last_action
@@ -87,7 +87,7 @@ module Kitchen
87
87
  # Format and color the given last error.
88
88
  #
89
89
  # @param last_error [String] the last error
90
- # @return [String] formated last error
90
+ # @return [String] formatted last error
91
91
  # @api private
92
92
  def format_last_error(last_error)
93
93
  case last_error
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -4,7 +4,7 @@
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,7 +23,7 @@ module Kitchen
23
23
  class Base
24
24
  include Logging
25
25
 
26
- # Contstructs a new Command object.
26
+ # Constructs a new Command object.
27
27
  #
28
28
  # @param cmd_args [Array] remainder of the arguments from processed ARGV
29
29
  # @param cmd_options [Hash] hash of Thor options
@@ -97,7 +97,7 @@ module Kitchen
97
97
  end
98
98
  end
99
99
 
100
- # Return an array on instances whos name matches the regular expression.
100
+ # Return an array on instances whose name matches the regular expression.
101
101
  #
102
102
  # @param regexp [Regexp] a regular expression matching on instance names
103
103
  # @return [Array<Instance>] an array of instances
@@ -111,7 +111,7 @@ module Kitchen
111
111
  rescue RegexpError => e
112
112
  die "Invalid Ruby regular expression, " \
113
113
  "you may need to single quote the argument. " \
114
- "Please try again or consult http://rubular.com/ (#{e.message})"
114
+ "Please try again or consult https://rubular.com/ (#{e.message})"
115
115
  end
116
116
  result = Array(result)
117
117
 
@@ -128,7 +128,7 @@ module Kitchen
128
128
  Kitchen.logger
129
129
  end
130
130
 
131
- # Return an array on instances whos name matches the regular expression,
131
+ # Return an array on instances whose name matches the regular expression,
132
132
  # the full instance name, or the `"all"` literal.
133
133
  #
134
134
  # @param arg [String] an instance name, a regular expression, the literal
@@ -146,7 +146,7 @@ module Kitchen
146
146
  module RunAction
147
147
  # Run an instance action (create, converge, setup, verify, destroy) on
148
148
  # a collection of instances. The instance actions will take place in a
149
- # seperate thread of execution which may or may not be running
149
+ # separate thread of execution which may or may not be running
150
150
  # concurrently.
151
151
  #
152
152
  # @param action [String] action to perform
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -20,7 +20,7 @@ module Kitchen
20
20
  # as the location of the Kitchen config file, instances, log_levels, etc.
21
21
  # This object is a factory object, meaning that it is responsible for
22
22
  # consuming the desired testing configuration in and returning Ruby objects
23
- # which are used to perfom the work.
23
+ # which are used to perform the work.
24
24
  #
25
25
  # Most internal objects are created with the expectation of being
26
26
  # *immutable*, meaning that internal state cannot be modified after creation.
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -63,7 +63,7 @@ module Kitchen
63
63
  end
64
64
 
65
65
  # @return [TrueClass,FalseClass] true if `:shell_type` is `"bourne"` (or
66
- # unset, for backwards compatability)
66
+ # unset, for backwards compatibility)
67
67
  def bourne_shell?
68
68
  ["bourne", nil].include?(instance.platform.shell_type)
69
69
  end
@@ -72,7 +72,7 @@ module Kitchen
72
72
  # fallback rules or returns nil if path cannot be determined.
73
73
  #
74
74
  # Given an instance with suite named `"server"`, a `test_base_path` of
75
- # `"/a/b"`, and a path segement of `"roles"` then following will be tried
75
+ # `"/a/b"`, and a path segment of `"roles"` then following will be tried
76
76
  # in order (first match that exists wins):
77
77
  #
78
78
  # 1. /a/b/server/roles
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -478,7 +478,7 @@ module Kitchen
478
478
  #
479
479
  # @deprecated The `:http_proxy` and `:https_proxy` should no longer be
480
480
  # used in driver blocks, they should be added to the provisioner and
481
- # verifier blocks so that they can be independantly configured.
481
+ # verifier blocks so that they can be independently configured.
482
482
  # Provisioners and Verifiers are responsible for HTTP proxying and no
483
483
  # longer are Drivers responsible for this.
484
484
  # @api private
@@ -499,7 +499,7 @@ module Kitchen
499
499
  # @param root [Hash] a hash to use as the root of the conversion
500
500
  # @deprecated The `:http_proxy` and `:https_proxy` should no longer be
501
501
  # used in driver blocks, they should be added to the provisioner and
502
- # verifier blocks so that they can be independantly configured.
502
+ # verifier blocks so that they can be independently configured.
503
503
  # Provisioners and Verifiers are responsible for HTTP proxying and no
504
504
  # longer are Drivers responsible for this.
505
505
  # @api private
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -125,7 +125,7 @@ module Kitchen
125
125
  end
126
126
  end
127
127
 
128
- # Determins whether or not the object is an error hash. An error hash is
128
+ # Determines whether or not the object is an error hash. An error hash is
129
129
  # defined as a Hash containing an `:error` key.
130
130
  #
131
131
  # @param obj [Object] an object
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -3,7 +3,7 @@
3
3
  # you may not use this file except in compliance with the License.
4
4
  # You may obtain a copy of the License at
5
5
  #
6
- # http://www.apache.org/licenses/LICENSE-2.0
6
+ # https://www.apache.org/licenses/LICENSE-2.0
7
7
  #
8
8
  # Unless required by applicable law or agreed to in writing, software
9
9
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -8,7 +8,7 @@
8
8
  # you may not use this file except in compliance with the License.
9
9
  # You may obtain a copy of the License at
10
10
  #
11
- # http://www.apache.org/licenses/LICENSE-2.0
11
+ # https://www.apache.org/licenses/LICENSE-2.0
12
12
  #
13
13
  # Unless required by applicable law or agreed to in writing, software
14
14
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -116,7 +116,7 @@ module Kitchen
116
116
  # initialized
117
117
  # @api private
118
118
  def init_test_dir?
119
- Util.list_directory("test/integration/").select { |d| File.directory?(d) }.empty?
119
+ Util.list_directory("test/integration/").none? { |d| File.directory?(d) }
120
120
  end
121
121
 
122
122
  # @return [true,false] whether or not a `.gitignore` file needs to be
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -123,7 +123,7 @@ module Kitchen
123
123
  # @return [self] this instance, used to chain actions
124
124
  #
125
125
  # @todo rescue Driver::ActionFailed and return some kind of null object
126
- # to gracfully stop action chaining
126
+ # to gracefully stop action chaining
127
127
  def create
128
128
  transition_to(:create)
129
129
  end
@@ -134,7 +134,7 @@ module Kitchen
134
134
  # @return [self] this instance, used to chain actions
135
135
  #
136
136
  # @todo rescue Driver::ActionFailed and return some kind of null object
137
- # to gracfully stop action chaining
137
+ # to gracefully stop action chaining
138
138
  def converge
139
139
  transition_to(:converge)
140
140
  end
@@ -145,7 +145,7 @@ module Kitchen
145
145
  # @return [self] this instance, used to chain actions
146
146
  #
147
147
  # @todo rescue Driver::ActionFailed and return some kind of null object
148
- # to gracfully stop action chaining
148
+ # to gracefully stop action chaining
149
149
  def setup
150
150
  transition_to(:setup)
151
151
  end
@@ -156,7 +156,7 @@ module Kitchen
156
156
  # @return [self] this instance, used to chain actions
157
157
  #
158
158
  # @todo rescue Driver::ActionFailed and return some kind of null object
159
- # to gracfully stop action chaining
159
+ # to gracefully stop action chaining
160
160
  def verify
161
161
  transition_to(:verify)
162
162
  end
@@ -167,7 +167,7 @@ module Kitchen
167
167
  # @return [self] this instance, used to chain actions
168
168
  #
169
169
  # @todo rescue Driver::ActionFailed and return some kind of null object
170
- # to gracfully stop action chaining
170
+ # to gracefully stop action chaining
171
171
  def destroy
172
172
  transition_to(:destroy)
173
173
  end
@@ -181,7 +181,7 @@ module Kitchen
181
181
  # @return [self] this instance, used to chain actions
182
182
  #
183
183
  # @todo rescue Driver::ActionFailed and return some kind of null object
184
- # to gracfully stop action chaining
184
+ # to gracefully stop action chaining
185
185
  def test(destroy_mode = :passing)
186
186
  elapsed = Benchmark.measure do
187
187
  banner "Cleaning up any prior instances of #{to_str}"
@@ -513,10 +513,10 @@ module Kitchen
513
513
  # would be a driver create action failing, a chef convergence crashing
514
514
  # in normal course of development, failing acceptance tests in the
515
515
  # verify action, etc.
516
- # @raise [ActionFailed] if an unforseen or unplanned exception is raised.
516
+ # @raise [ActionFailed] if an unforeseen or unplanned exception is raised.
517
517
  # This would usually indicate that a race condition was triggered, a
518
518
  # bug exists in a driver, provisioner, or core, a transient IO error
519
- # occured, etc.
519
+ # occurred, etc.
520
520
  # @api private
521
521
  def action(what, &block)
522
522
  state = state_file.read
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # http://www.apache.org/licenses/LICENSE-2.0
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,7 +23,7 @@ require "yaml" unless defined?(YAML)
23
23
  module Kitchen
24
24
  module Loader
25
25
  # YAML file loader for Test Kitchen configuration. This class is
26
- # responisble for parsing the main YAML file and the local YAML if it
26
+ # responsible for parsing the main YAML file and the local YAML if it
27
27
  # exists. Local file configuration will win over the default configuration.
28
28
  # The client of this class should not require any YAML loading or parsing
29
29
  # logic.
@@ -156,7 +156,7 @@ module Kitchen
156
156
  @process_erb ? process_erb(string, file) : string
157
157
  end
158
158
 
159
- # Passes a string through ERb to evaulate any ERb blocks.
159
+ # Passes a string through ERb to evaluate any ERb blocks.
160
160
  #
161
161
  # @param string [String] the string to process
162
162
  # @param file [String] an absolute path to the file represented as the
@@ -242,7 +242,7 @@ module Kitchen
242
242
  File.join(File.expand_path(ENV["HOME"]), ".kitchen", "config.yml")
243
243
  end
244
244
 
245
- # Generate a diganose Hash for a particular YAML file Hash. If an error
245
+ # Generate a diagnose Hash for a particular YAML file Hash. If an error
246
246
  # occurs when loading the data, then a failure hash will be inserted
247
247
  # into the `:raw_data` sub-hash.
248
248
  #
@@ -263,7 +263,7 @@ module Kitchen
263
263
  { filename: file, raw_data: hash }
264
264
  end
265
265
 
266
- # Generates a Hash respresenting a failure, given an Exception object.
266
+ # Generates a Hash representing a failure, given an Exception object.
267
267
  #
268
268
  # @param e [Exception] an exception
269
269
  # @param file [String] the absolute path to a file (default: `nil`)