kitchen-shopify-provisioner 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: b098af89d7358ad73965a426e70f07d8dc178527
4
- data.tar.gz: f0140e17db7b9acc2d8750dbfb6aa299d2927560
3
+ metadata.gz: 683509939322c243be692687ada277f7614606fd
4
+ data.tar.gz: 09ac5b6adcc5af70fa6e0dc330c15bb5209b352c
5
5
  SHA512:
6
- metadata.gz: 7fcc38fea366e0f2aa0f71742f57ac40378667a49d07c054835856d6f63fc367411272dfb98859b2348bc61797b81e2d5544904abbea0fc76c9c136bc1be6984
7
- data.tar.gz: 4655b3491436d0bd0f140ced47d60ceafd4b9d844f4dc0fcc9180e02d10da067d951ae42ce519528ccfbc51ee5758d2f908bb0a718f4328bc47f83630480e62b
6
+ metadata.gz: 0808555efbca2608a7c566d5f599371879203229c0bf4f03ccfa786aca5bca1741448caa5f885de54f545a1c1650b36517806042b31b28228990a4f015771dca
7
+ data.tar.gz: bfd153d1a811395bbd90a810f43dc3c84daf5563ead8ad392710d9f2b1adcb9ed0f67b86c49bfb16b246dcce3d470811299336909b459f0800c2bdc7ab3c8af4
@@ -1,3 +1,3 @@
1
1
  module KitchenShopifyProvisioner
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
@@ -62,7 +62,10 @@ module Kitchen
62
62
  files.each do |item_file|
63
63
  raw_data = ::Chef::JSONCompat.from_json(IO.read(item_file))
64
64
  raw_data = ::Chef::EncryptedDataBagItem.new(raw_data, secret).to_hash if encrypted_data_bag?(raw_data)
65
- json_dump = ::Chef::JSONCompat.to_json_pretty(raw_data)
65
+ item = ::Chef::DataBagItem.new
66
+ item.data_bag(bag_name)
67
+ item.raw_data = raw_data
68
+ json_dump = ::Chef::JSONCompat.to_json_pretty(item)
66
69
  plain_file = File.join(plain_data_bags, bag_name, File.basename(item_file))
67
70
  FileUtils.mkdir_p(File.dirname(plain_file))
68
71
  File.write(plain_file, json_dump)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-shopify-provisioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel