From df0eb0e5d9c9f9b4fca4b860edfe2861e342d298 Mon Sep 17 00:00:00 2001 From: Xorima Bot Date: Tue, 11 May 2021 09:13:54 +0000 Subject: [PATCH] Cookstyle 7.12.2 Fixes Issues found and resolved with: resources/config.rb - 1:1 refactor: Chef/Deprecations/ResourceWithoutUnifiedTrue - Set unified_mode true in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 April 2022 when Unified Mode becomes the default. https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue Issues found and resolved with: resources/install.rb - 1:1 refactor: Chef/Deprecations/ResourceWithoutUnifiedTrue - Set unified_mode true in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 April 2022 when Unified Mode becomes the default. https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue Issues found and resolved with: resources/service.rb - 1:1 refactor: Chef/Deprecations/ResourceWithoutUnifiedTrue - Set unified_mode true in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 April 2022 when Unified Mode becomes the default. https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue Issues found and resolved with: resources/user_toml.rb - 1:1 refactor: Chef/Deprecations/ResourceWithoutUnifiedTrue - Set unified_mode true in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 April 2022 when Unified Mode becomes the default. https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue Signed-off-by: Xorima Bot --- CHANGELOG.md | 9 ++++++++- resources/config.rb | 1 + resources/install.rb | 1 + resources/service.rb | 1 + resources/user_toml.rb | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 260c332..1f0ac9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ This file is used to list changes made in each version of the habitat cookbook. +## Unreleased ## Unreleased + +- resolved cookstyle error: resources/config.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` +- resolved cookstyle error: resources/install.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` +- resolved cookstyle error: resources/service.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` +- resolved cookstyle error: resources/user_toml.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` + ## Unreleased @@ -596,4 +603,4 @@ This cookbook was updated to be compatible with the changes made in Habitat 0.26 ## v0.0.3 (2016-07-14) -- Initial release, includes `hab_package` and `hab_install` resources \ No newline at end of file +- Initial release, includes `hab_package` and `hab_install` resources diff --git a/resources/config.rb b/resources/config.rb index d24c232..25a0e85 100644 --- a/resources/config.rb +++ b/resources/config.rb @@ -18,6 +18,7 @@ resource_name :hab_config provides :hab_config +unified_mode true property :config, Mash, required: true, diff --git a/resources/install.rb b/resources/install.rb index 0b3e6fe..0ee3d16 100644 --- a/resources/install.rb +++ b/resources/install.rb @@ -21,6 +21,7 @@ resource_name :hab_install provides :hab_install +unified_mode true property :name, String, default: '' # The following are only used on *nix diff --git a/resources/service.rb b/resources/service.rb index 03f747d..b0c2643 100644 --- a/resources/service.rb +++ b/resources/service.rb @@ -16,6 +16,7 @@ resource_name :hab_service provides :hab_service +unified_mode true property :service_name, String, name_property: true property :loaded, [true, false], default: false diff --git a/resources/user_toml.rb b/resources/user_toml.rb index 5ec30ed..b665b42 100644 --- a/resources/user_toml.rb +++ b/resources/user_toml.rb @@ -13,6 +13,7 @@ # See the License for the specific language governing resource_name :hab_user_toml provides :hab_user_toml +unified_mode true property :config, Mash, required: true,