chef-dk 4.4.27 → 4.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edfa383f45019958914899a28f3d1d14056222342d09cf5b8c14254cb2c1f12b
4
- data.tar.gz: 4ab61d3e3cd435e5fe97b6f8031a34b73cceeb5ea3fafcff5bfdd6b1bc018f03
3
+ metadata.gz: d3bb719bf9d2fbbb8f2da0aa9526733ec1598243ed457b2e4896e7beccd6fa35
4
+ data.tar.gz: 31bfaf0d3c187ba6edf5d96694404c1b2e7b42bb13841b974333e36b63fe532d
5
5
  SHA512:
6
- metadata.gz: '0999e35c9a91a4a10383a6766208bff5f0be416c4d8b12b40be90fe4e5c7f9ff7e769fcddbb68487e5490eb260c7467bde3348aff1aae8dcf5210f01e02691ff'
7
- data.tar.gz: 31bdb2bcab553b3be2d47336b9009c287e2b56d3fbe25dbbad16f7d37fcc28e9a29a25487975e1652cfe01289b7024b2b22969c1ff2441c5465eada892536026
6
+ metadata.gz: 72b9c2bceab172a22c0a1022eca6c1d6d1eb91dfdaf78ec0f30a959d237c47b41820ad1c18fd49a620d9675c50fd073f46a0c4fb97f6e9c1386bf79620ae7a25
7
+ data.tar.gz: b91842a5ed65b313c17da04cdcf986dfa98bcae6ee0d42bc56e0ece5c1cf63061e3796bfca75f39f1bb18a1d8c8cef897cccf1e9a7cb3574bd07674c272a488d
data/Gemfile CHANGED
@@ -54,8 +54,8 @@ group(:omnibus_package) do
54
54
  # gems to Rubygems now, so letting this float on latest should always give us the latest
55
55
  # stable release. May have to re-pin around major version bumping time, or during patch
56
56
  # fixes.
57
- gem "chef", "= 15.3.14"
58
- gem "chef-bin", "= 15.3.14"
57
+ gem "chef", "= 15.4.45"
58
+ gem "chef-bin", "= 15.4.45"
59
59
  gem "cheffish", ">= 14.0.1"
60
60
  gem "chefspec", ">= 7.3.0", "< 8"
61
61
  gem "fauxhai", "~> 7.0"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chef-dk (4.4.27)
4
+ chef-dk (4.5.0)
5
5
  addressable (>= 2.3.5, < 2.6)
6
6
  chef (~> 15.0)
7
7
  cookbook-omnifetch (~> 0.5)
@@ -31,7 +31,7 @@ GEM
31
31
  artifactory (3.0.5)
32
32
  ast (2.4.0)
33
33
  aws-eventstream (1.0.3)
34
- aws-partitions (1.218.0)
34
+ aws-partitions (1.223.0)
35
35
  aws-sdk-apigateway (1.35.0)
36
36
  aws-sdk-core (~> 3, >= 3.61.1)
37
37
  aws-sigv4 (~> 1.1)
@@ -71,13 +71,13 @@ GEM
71
71
  aws-sdk-codedeploy (1.26.0)
72
72
  aws-sdk-core (~> 3, >= 3.61.1)
73
73
  aws-sigv4 (~> 1.1)
74
- aws-sdk-codepipeline (1.24.0)
74
+ aws-sdk-codepipeline (1.25.0)
75
75
  aws-sdk-core (~> 3, >= 3.61.1)
76
76
  aws-sigv4 (~> 1.1)
77
77
  aws-sdk-configservice (1.37.0)
78
78
  aws-sdk-core (~> 3, >= 3.61.1)
79
79
  aws-sigv4 (~> 1.1)
80
- aws-sdk-core (3.68.0)
80
+ aws-sdk-core (3.68.1)
81
81
  aws-eventstream (~> 1.0, >= 1.0.2)
82
82
  aws-partitions (~> 1.0)
83
83
  aws-sigv4 (~> 1.1)
@@ -85,22 +85,22 @@ GEM
85
85
  aws-sdk-costandusagereportservice (1.17.0)
86
86
  aws-sdk-core (~> 3, >= 3.61.1)
87
87
  aws-sigv4 (~> 1.1)
88
- aws-sdk-dynamodb (1.35.0)
88
+ aws-sdk-dynamodb (1.36.0)
89
89
  aws-sdk-core (~> 3, >= 3.61.1)
90
90
  aws-sigv4 (~> 1.1)
91
- aws-sdk-ec2 (1.110.0)
91
+ aws-sdk-ec2 (1.112.0)
92
92
  aws-sdk-core (~> 3, >= 3.61.1)
93
93
  aws-sigv4 (~> 1.1)
94
94
  aws-sdk-ecr (1.20.0)
95
95
  aws-sdk-core (~> 3, >= 3.61.1)
96
96
  aws-sigv4 (~> 1.1)
97
- aws-sdk-ecs (1.50.0)
97
+ aws-sdk-ecs (1.51.0)
98
98
  aws-sdk-core (~> 3, >= 3.61.1)
99
99
  aws-sigv4 (~> 1.1)
100
100
  aws-sdk-eks (1.26.0)
101
101
  aws-sdk-core (~> 3, >= 3.61.1)
102
102
  aws-sigv4 (~> 1.1)
103
- aws-sdk-elasticache (1.25.0)
103
+ aws-sdk-elasticache (1.26.0)
104
104
  aws-sdk-core (~> 3, >= 3.61.1)
105
105
  aws-sigv4 (~> 1.1)
106
106
  aws-sdk-elasticbeanstalk (1.25.0)
@@ -112,16 +112,16 @@ GEM
112
112
  aws-sdk-elasticloadbalancingv2 (1.34.0)
113
113
  aws-sdk-core (~> 3, >= 3.61.1)
114
114
  aws-sigv4 (~> 1.1)
115
- aws-sdk-elasticsearchservice (1.26.0)
115
+ aws-sdk-elasticsearchservice (1.27.0)
116
116
  aws-sdk-core (~> 3, >= 3.61.1)
117
117
  aws-sigv4 (~> 1.1)
118
- aws-sdk-firehose (1.20.0)
118
+ aws-sdk-firehose (1.22.0)
119
119
  aws-sdk-core (~> 3, >= 3.61.1)
120
120
  aws-sigv4 (~> 1.1)
121
121
  aws-sdk-iam (1.30.0)
122
122
  aws-sdk-core (~> 3, >= 3.61.1)
123
123
  aws-sigv4 (~> 1.1)
124
- aws-sdk-kafka (1.12.0)
124
+ aws-sdk-kafka (1.13.0)
125
125
  aws-sdk-core (~> 3, >= 3.61.1)
126
126
  aws-sigv4 (~> 1.1)
127
127
  aws-sdk-kinesis (1.19.0)
@@ -136,7 +136,7 @@ GEM
136
136
  aws-sdk-organizations (1.17.0)
137
137
  aws-sdk-core (~> 3, >= 3.39.0)
138
138
  aws-sigv4 (~> 1.0)
139
- aws-sdk-rds (1.66.0)
139
+ aws-sdk-rds (1.67.0)
140
140
  aws-sdk-core (~> 3, >= 3.61.1)
141
141
  aws-sigv4 (~> 1.1)
142
142
  aws-sdk-redshift (1.32.0)
@@ -151,7 +151,7 @@ GEM
151
151
  aws-sdk-route53resolver (1.10.0)
152
152
  aws-sdk-core (~> 3, >= 3.61.1)
153
153
  aws-sigv4 (~> 1.1)
154
- aws-sdk-s3 (1.48.0)
154
+ aws-sdk-s3 (1.49.0)
155
155
  aws-sdk-core (~> 3, >= 3.61.1)
156
156
  aws-sdk-kms (~> 1)
157
157
  aws-sigv4 (~> 1.1)
@@ -170,7 +170,7 @@ GEM
170
170
  aws-sdk-sqs (1.22.0)
171
171
  aws-sdk-core (~> 3, >= 3.61.1)
172
172
  aws-sigv4 (~> 1.1)
173
- aws-sdk-ssm (1.55.0)
173
+ aws-sdk-ssm (1.57.0)
174
174
  aws-sdk-core (~> 3, >= 3.61.1)
175
175
  aws-sigv4 (~> 1.1)
176
176
  aws-sigv4 (1.1.0)
@@ -185,11 +185,11 @@ GEM
185
185
  ms_rest_azure (~> 0.11.1)
186
186
  azure_mgmt_key_vault (0.17.4)
187
187
  ms_rest_azure (~> 0.11.0)
188
- azure_mgmt_network (0.20.0)
188
+ azure_mgmt_network (0.21.0)
189
189
  ms_rest_azure (~> 0.11.1)
190
- azure_mgmt_resources (0.17.6)
190
+ azure_mgmt_resources (0.17.7)
191
191
  ms_rest_azure (~> 0.11.1)
192
- azure_mgmt_storage (0.18.0)
192
+ azure_mgmt_storage (0.18.1)
193
193
  ms_rest_azure (~> 0.11.1)
194
194
  backports (3.15.0)
195
195
  bcrypt_pbkdf (1.0.1)
@@ -212,11 +212,11 @@ GEM
212
212
  debug_inspector (>= 0.0.1)
213
213
  builder (3.2.3)
214
214
  byebug (11.0.1)
215
- chef (15.3.14)
215
+ chef (15.4.45)
216
216
  addressable
217
217
  bcrypt_pbkdf (~> 1.0)
218
218
  bundler (>= 1.10)
219
- chef-config (= 15.3.14)
219
+ chef-config (= 15.4.45)
220
220
  chef-zero (>= 14.0.11)
221
221
  diff-lcs (~> 1.2, >= 1.2.4)
222
222
  ed25519 (~> 1.2)
@@ -239,15 +239,15 @@ GEM
239
239
  plist (~> 3.2)
240
240
  proxifier (~> 1.0)
241
241
  syslog-logger (~> 1.6)
242
- train-core (~> 3.0)
243
- train-winrm
242
+ train-core (~> 3.1)
243
+ train-winrm (>= 0.2.5)
244
244
  tty-screen (~> 0.6)
245
245
  uuidtools (~> 2.1.5)
246
- chef (15.3.14-universal-mingw32)
246
+ chef (15.4.45-universal-mingw32)
247
247
  addressable
248
248
  bcrypt_pbkdf (~> 1.0)
249
249
  bundler (>= 1.10)
250
- chef-config (= 15.3.14)
250
+ chef-config (= 15.4.45)
251
251
  chef-zero (>= 14.0.11)
252
252
  diff-lcs (~> 1.2, >= 1.2.4)
253
253
  ed25519 (~> 1.2)
@@ -271,8 +271,8 @@ GEM
271
271
  plist (~> 3.2)
272
272
  proxifier (~> 1.0)
273
273
  syslog-logger (~> 1.6)
274
- train-core (~> 3.0)
275
- train-winrm
274
+ train-core (~> 3.1)
275
+ train-winrm (>= 0.2.5)
276
276
  tty-screen (~> 0.6)
277
277
  uuidtools (~> 2.1.5)
278
278
  win32-api (~> 1.5.3)
@@ -300,9 +300,9 @@ GEM
300
300
  toml-rb
301
301
  train
302
302
  tty-spinner
303
- chef-bin (15.3.14)
304
- chef (= 15.3.14)
305
- chef-config (15.3.14)
303
+ chef-bin (15.4.45)
304
+ chef (= 15.4.45)
305
+ chef-config (15.4.45)
306
306
  addressable
307
307
  fuzzyurl
308
308
  mixlib-config (>= 2.2.12, < 4.0)
@@ -321,7 +321,7 @@ GEM
321
321
  ffi-yajl (~> 2.2)
322
322
  http (~> 2.2)
323
323
  chef-vault (3.4.3)
324
- chef-zero (14.0.12)
324
+ chef-zero (14.0.13)
325
325
  ffi-yajl (~> 2.2)
326
326
  hashie (>= 2.0, < 4.0)
327
327
  mixlib-log (>= 2.0, < 4.0)
@@ -344,7 +344,7 @@ GEM
344
344
  concurrent-ruby (1.1.5)
345
345
  cookbook-omnifetch (0.9.0)
346
346
  mixlib-archive (>= 0.4, < 2.0)
347
- cookstyle (5.6.2)
347
+ cookstyle (5.9.3)
348
348
  rubocop (= 0.72.0)
349
349
  cucumber (3.1.2)
350
350
  builder (>= 2.1.2)
@@ -392,7 +392,7 @@ GEM
392
392
  equatable (0.6.1)
393
393
  erubis (2.7.0)
394
394
  excon (0.67.0)
395
- faraday (0.15.4)
395
+ faraday (0.17.0)
396
396
  multipart-post (>= 1.2, < 3)
397
397
  faraday-cookie_jar (0.0.6)
398
398
  faraday (>= 0.7.4)
@@ -470,12 +470,12 @@ GEM
470
470
  http-form_data (1.0.3)
471
471
  http_parser.rb (0.6.0)
472
472
  httpclient (2.8.3)
473
- i18n (1.6.0)
473
+ i18n (1.7.0)
474
474
  concurrent-ruby (~> 1.0)
475
475
  ice_nine (0.11.2)
476
476
  inifile (3.0.0)
477
477
  iniparse (1.4.4)
478
- inspec (4.16.0)
478
+ inspec (4.18.0)
479
479
  addressable (~> 2.4)
480
480
  faraday (>= 0.9.0)
481
481
  faraday_middleware (~> 0.12.2)
@@ -489,7 +489,7 @@ GEM
489
489
  parallel (~> 1.9)
490
490
  parslet (~> 1.5)
491
491
  pry (~> 0)
492
- rspec (~> 3)
492
+ rspec (~> 3.0, < 3.9)
493
493
  rspec-its (~> 1.2)
494
494
  rubyzip (~> 1.2, >= 1.2.2)
495
495
  semverse
@@ -503,8 +503,8 @@ GEM
503
503
  train-winrm (~> 0.2)
504
504
  tty-prompt (~> 0.17)
505
505
  tty-table (~> 0.10)
506
- inspec-bin (4.16.0)
507
- inspec (= 4.16.0)
506
+ inspec-bin (4.18.0)
507
+ inspec (= 4.18.0)
508
508
  ipaddress (0.8.3)
509
509
  iso8601 (0.12.1)
510
510
  jaro_winkler (1.5.3)
@@ -564,7 +564,7 @@ GEM
564
564
  aws-sdk-ec2 (~> 1.95)
565
565
  aws-sdk-s3 (~> 1.43)
566
566
  chef (>= 15.1)
567
- knife-google (4.1.0)
567
+ knife-google (4.2.0)
568
568
  gcewinpass (~> 1.1)
569
569
  google-api-client (>= 0.19.8, < 0.25)
570
570
  knife-cloud (>= 2.0.0)
@@ -577,7 +577,7 @@ GEM
577
577
  diffy (>= 3.0.1)
578
578
  git (>= 1.2.5)
579
579
  knife-tidy (2.0.1)
580
- knife-vsphere (4.0.1)
580
+ knife-vsphere (4.0.3)
581
581
  chef (>= 15.1)
582
582
  chef-bin (>= 15.1)
583
583
  chef-vault (>= 2.6.0)
@@ -594,10 +594,9 @@ GEM
594
594
  tomlrb (~> 1.2)
595
595
  tty-box (~> 0.3)
596
596
  tty-prompt (~> 0.18)
597
- listen (3.1.5)
598
- rb-fsevent (~> 0.9, >= 0.9.4)
599
- rb-inotify (~> 0.9, >= 0.9.7)
600
- ruby_dep (~> 1.2)
597
+ listen (3.2.0)
598
+ rb-fsevent (~> 0.10, >= 0.10.3)
599
+ rb-inotify (~> 0.9, >= 0.9.10)
601
600
  little-plugger (1.1.4)
602
601
  lockfile (2.1.3)
603
602
  logging (2.2.2)
@@ -609,7 +608,7 @@ GEM
609
608
  method_source (0.9.2)
610
609
  mime-types (3.3)
611
610
  mime-types-data (~> 3.2015)
612
- mime-types-data (3.2019.0904)
611
+ mime-types-data (3.2019.1009)
613
612
  mini_portile2 (2.4.0)
614
613
  minitar (0.9)
615
614
  minitest (5.10.3)
@@ -642,7 +641,7 @@ GEM
642
641
  faraday-cookie_jar (~> 0.0.6)
643
642
  ms_rest (~> 0.7.4)
644
643
  unf_ext (= 0.0.7.2)
645
- multi_json (1.13.1)
644
+ multi_json (1.14.1)
646
645
  multi_test (0.1.2)
647
646
  multipart-post (2.1.1)
648
647
  necromancer (0.5.0)
@@ -689,8 +688,8 @@ GEM
689
688
  uuidtools
690
689
  os (1.0.1)
691
690
  paint (1.0.1)
692
- parallel (1.17.0)
693
- parser (2.6.4.1)
691
+ parallel (1.18.0)
692
+ parser (2.6.5.0)
694
693
  ast (~> 2.4.0)
695
694
  parslet (1.8.2)
696
695
  pastel (0.7.3)
@@ -743,16 +742,16 @@ GEM
743
742
  rspec-mocks (~> 3.8.0)
744
743
  rspec-core (3.8.2)
745
744
  rspec-support (~> 3.8.0)
746
- rspec-expectations (3.8.4)
745
+ rspec-expectations (3.8.6)
747
746
  diff-lcs (>= 1.2.0, < 2.0)
748
747
  rspec-support (~> 3.8.0)
749
748
  rspec-its (1.3.0)
750
749
  rspec-core (>= 3.0.0)
751
750
  rspec-expectations (>= 3.0.0)
752
- rspec-mocks (3.8.1)
751
+ rspec-mocks (3.8.2)
753
752
  diff-lcs (>= 1.2.0, < 2.0)
754
753
  rspec-support (~> 3.8.0)
755
- rspec-support (3.8.2)
754
+ rspec-support (3.8.3)
756
755
  rubocop (0.72.0)
757
756
  jaro_winkler (~> 1.5.1)
758
757
  parallel (~> 1.10)
@@ -763,16 +762,15 @@ GEM
763
762
  ruby-prof (1.0.0)
764
763
  ruby-progressbar (1.10.1)
765
764
  ruby-shadow (2.5.0)
766
- ruby_dep (1.5.0)
767
765
  rubyntlm (0.6.2)
768
- rubyzip (1.2.4)
766
+ rubyzip (1.3.0)
769
767
  rufus-lru (1.1.0)
770
768
  sawyer (0.8.2)
771
769
  addressable (>= 2.3.5)
772
770
  faraday (> 0.8, < 2.0)
773
771
  semverse (3.0.0)
774
772
  shellany (0.0.1)
775
- signet (0.11.0)
773
+ signet (0.12.0)
776
774
  addressable (~> 2.3)
777
775
  faraday (~> 0.9)
778
776
  jwt (>= 1.5, < 3.0)
@@ -813,7 +811,7 @@ GEM
813
811
  toml-rb (1.1.2)
814
812
  citrus (~> 3.0, > 3.0)
815
813
  tomlrb (1.2.8)
816
- train (3.0.3)
814
+ train (3.1.4)
817
815
  azure_graph_rbac (~> 0.16)
818
816
  azure_mgmt_key_vault (~> 0.17)
819
817
  azure_mgmt_resources (~> 0.15)
@@ -872,7 +870,7 @@ GEM
872
870
  aws-sdk-sns (~> 1.9)
873
871
  aws-sdk-sqs (~> 1.10)
874
872
  aws-sdk-ssm (~> 1)
875
- train-core (3.0.3)
873
+ train-core (3.1.4)
876
874
  json (>= 1.8, < 3.0)
877
875
  mixlib-shellout (>= 2.0, < 4.0)
878
876
  net-scp (>= 1.2, < 3.0)
@@ -884,7 +882,7 @@ GEM
884
882
  treetop (1.6.10)
885
883
  polyglot (~> 0.3)
886
884
  trollop (2.9.9)
887
- tty-box (0.4.1)
885
+ tty-box (0.5.0)
888
886
  pastel (~> 0.7.2)
889
887
  strings (~> 0.1.6)
890
888
  tty-cursor (~> 0.7)
@@ -969,7 +967,7 @@ GEM
969
967
  logging (>= 1.6.1, < 3.0)
970
968
  rubyzip (~> 1.1)
971
969
  winrm (~> 2.0)
972
- wisper (2.0.0)
970
+ wisper (2.0.1)
973
971
  wmi-lite (1.0.2)
974
972
  yard (0.9.20)
975
973
 
@@ -984,9 +982,9 @@ DEPENDENCIES
984
982
  bcrypt_pbkdf
985
983
  berkshelf (>= 7.0.8)
986
984
  bundler
987
- chef (= 15.3.14)
985
+ chef (= 15.4.45)
988
986
  chef-apply (= 0.3.0)
989
- chef-bin (= 15.3.14)
987
+ chef-bin (= 15.4.45)
990
988
  chef-dk!
991
989
  chef-stove
992
990
  chef-sugar-ng
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module ChefDK
19
- VERSION = "4.4.27".freeze
19
+ VERSION = "4.5.0".freeze
20
20
  end
@@ -67,7 +67,7 @@ describe ChefDK::Command::GeneratorCommands::BuildCookbook do
67
67
 
68
68
  let(:expected_cookbook_files) do
69
69
  expected_cookbook_file_relpaths.map do |relpath|
70
- File.join(tempdir, "workflow_project", ".delivery", "build_cookbook", relpath)
70
+ File.join(Dir["#{tempdir}"], "workflow_project", ".delivery", "build_cookbook", relpath)
71
71
  end
72
72
  end
73
73
 
@@ -54,7 +54,7 @@ describe ChefDK::Command::GeneratorCommands::Cookbook do
54
54
 
55
55
  let(:expected_cookbook_files) do
56
56
  expected_cookbook_file_relpaths.map do |relpath|
57
- File.join(tempdir, "new_cookbook", relpath)
57
+ File.join(Dir["#{tempdir}"], "new_cookbook", relpath)
58
58
  end
59
59
  end
60
60
 
@@ -59,14 +59,14 @@ describe ChefDK::Command::GeneratorCommands::GeneratorGenerator do
59
59
  let(:argv) { [] }
60
60
 
61
61
  let(:expected_files_full_paths) do
62
- expected_files_relpaths.map { |p| File.join(tempdir, "code_generator", p) }
62
+ expected_files_relpaths.map { |p| File.join(Dir["#{tempdir}"], "code_generator", p) }
63
63
  end
64
64
 
65
65
  it "creates a copy of code_generator in the CWD" do
66
66
  Dir.chdir(tempdir) do
67
67
  expect(generator_generator.run).to eq(0)
68
68
  end
69
- base_path = File.join(tempdir, "code_generator")
69
+ base_path = File.join(Dir["#{tempdir}"], "code_generator")
70
70
  expect(actual_files(base_path)).to match_array(expected_files_full_paths)
71
71
  end
72
72
 
@@ -105,7 +105,7 @@ describe ChefDK::Command::GeneratorCommands::GeneratorGenerator do
105
105
 
106
106
  it "fails" do
107
107
  expect(generator_generator.run).to eq(1)
108
- expect(actual_files(tempdir)).to eq([ conflicting_dir ])
108
+ expect(actual_files(tempdir)).to eq(Dir["#{conflicting_dir}"])
109
109
 
110
110
  expected_msg = "ERROR: file or directory #{conflicting_dir} exists.\n"
111
111
 
@@ -116,7 +116,7 @@ describe ChefDK::Command::GeneratorCommands::GeneratorGenerator do
116
116
  context "and there isn't a directory named code_generator in that directory" do
117
117
 
118
118
  let(:expected_files_full_paths) do
119
- expected_files_relpaths.map { |p| File.join(tempdir, "code_generator", p) }
119
+ expected_files_relpaths.map { |p| File.join(Dir["#{tempdir}"], "code_generator", p) }
120
120
  end
121
121
 
122
122
  it "names the cookbook code_generator" do
@@ -127,7 +127,7 @@ describe ChefDK::Command::GeneratorCommands::GeneratorGenerator do
127
127
  it "copies the code_generator to GIVEN_DIR/code_generator" do
128
128
  expect(generator_generator.run).to eq(0)
129
129
 
130
- base_path = File.join(tempdir, "code_generator")
130
+ base_path = File.join(Dir["#{tempdir}"], "code_generator")
131
131
  expect(actual_files(base_path)).to match_array(expected_files_full_paths)
132
132
  end
133
133
  end
@@ -136,7 +136,7 @@ describe ChefDK::Command::GeneratorCommands::GeneratorGenerator do
136
136
 
137
137
  context "when the path is a regular file" do
138
138
 
139
- let(:conflicting_file) { File.join(tempdir, "roadblock") }
139
+ let(:conflicting_file) { File.join(Dir["#{tempdir}"], "roadblock") }
140
140
 
141
141
  let(:argv) { [ conflicting_file ] }
142
142
 
@@ -157,7 +157,7 @@ describe ChefDK::Command::GeneratorCommands::GeneratorGenerator do
157
157
 
158
158
  context "when the last element of the given path doesn't exist" do
159
159
 
160
- let(:target_dir) { File.join(tempdir, "my_cool_generator") }
160
+ let(:target_dir) { File.join(Dir["#{tempdir}"], "my_cool_generator") }
161
161
 
162
162
  let(:argv) { [ target_dir ] }
163
163
 
@@ -35,11 +35,11 @@ describe ChefDK::Command::GeneratorCommands::Repo do
35
35
  let(:file) { "" }
36
36
  let(:file_path) { File.join(repo_path, file) }
37
37
  let(:file_contents) { File.read(file_path) }
38
- let(:repo_path) { File.join(tempdir, "new_repo") }
38
+ let(:repo_path) { File.join(Dir["#{tempdir}"], "new_repo") }
39
39
 
40
40
  let(:expected_cookbook_files) do
41
41
  expected_cookbook_file_relpaths.map do |relpath|
42
- File.join(tempdir, "new_repo", relpath)
42
+ File.join(Dir["#{tempdir}"], "new_repo", relpath)
43
43
  end
44
44
  end
45
45
 
@@ -358,21 +358,21 @@ describe ChefDK::PolicyfileServices::ExportRepo do
358
358
 
359
359
  context "When the export dir has conflicting content" do
360
360
 
361
- let(:non_conflicting_file_in_export_dir) { File.join(export_dir, "some_random_cruft") }
361
+ let(:non_conflicting_file_in_export_dir) { File.join(Dir["#{export_dir}"], "some_random_cruft") }
362
362
 
363
- let(:cookbook_artifacts_dir) { File.join(export_dir, "cookbook_artifacts") }
363
+ let(:cookbook_artifacts_dir) { File.join(Dir["#{export_dir}"], "cookbook_artifacts") }
364
364
 
365
365
  let(:file_in_cookbook_artifacts_dir) { File.join(cookbook_artifacts_dir, "some_random_cruft") }
366
366
 
367
- let(:policies_dir) { File.join(export_dir, "policies") }
367
+ let(:policies_dir) { File.join(Dir["#{export_dir}"], "policies") }
368
368
 
369
- let(:policy_groups_dir) { File.join(export_dir, "policy_groups") }
369
+ let(:policy_groups_dir) { File.join(Dir["#{export_dir}"], "policy_groups") }
370
370
 
371
371
  let(:extra_policy_item) { File.join(policies_dir, "leftover-policy.json") }
372
372
 
373
373
  let(:extra_policy_group_item) { File.join(policy_groups_dir, "leftover-policy-group.json") }
374
374
 
375
- let(:conflicting_policyfile_lock) { File.join(export_dir, "Policyfile.lock.json") }
375
+ let(:conflicting_policyfile_lock) { File.join(Dir["#{export_dir}"], "Policyfile.lock.json") }
376
376
 
377
377
  before do
378
378
  FileUtils.mkdir_p(export_dir)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-dk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.27
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel DeLeo
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-09-25 00:00:00.000000000 Z
13
+ date: 2019-10-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mixlib-cli