From 30cdd058c36ae7291699e35a90980b89d6e700d0 Mon Sep 17 00:00:00 2001 From: Cookstyle Date: Mon, 21 Jun 2021 13:53:15 -0700 Subject: [PATCH] Cookstyle Bot Auto Corrections with Cookstyle 7.14.0 This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (7.14.0). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client. Signed-off-by: Cookstyle --- metadata.rb | 7 +++---- recipes/default.rb | 4 ++-- spec/unit/recipes/default_spec.rb | 4 ++-- test/metadata.rb | 7 +++---- test/recipes/default_test.rb | 2 -- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/metadata.rb b/metadata.rb index 17388ca..27404f4 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,10 +1,9 @@ name 'site_config' maintainer 'The Authors' maintainer_email 'you@example.com' -license 'all_rights' +license 'all rights reserved' description 'Installs/Configures site_config' -long_description 'Installs/Configures site_config' version '0.1.0' -issues_url 'https://github.com/chef-training/site_config/issues' if respond_to?(:issues_url) -source_url 'https://github.com/chef-training/site_config' if respond_to?(:source_url) +issues_url 'https://github.com/chef-training/site_config/issues' +source_url 'https://github.com/chef-training/site_config' diff --git a/recipes/default.rb b/recipes/default.rb index a517a9e..cf4e4d5 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: site_config +# Cookbook:: site_config # Recipe:: default # -# Copyright (c) 2016 The Authors, All Rights Reserved. +# Copyright:: (c) 2016 The Authors, All Rights Reserved. execute 'apt-get update -y' diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb index 0900433..3dfba26 100644 --- a/spec/unit/recipes/default_spec.rb +++ b/spec/unit/recipes/default_spec.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: site_config +# Cookbook:: site_config # Spec:: default # -# Copyright (c) 2016 The Authors, All Rights Reserved. +# Copyright:: (c) 2016 The Authors, All Rights Reserved. require 'spec_helper' diff --git a/test/metadata.rb b/test/metadata.rb index 17388ca..27404f4 100644 --- a/test/metadata.rb +++ b/test/metadata.rb @@ -1,10 +1,9 @@ name 'site_config' maintainer 'The Authors' maintainer_email 'you@example.com' -license 'all_rights' +license 'all rights reserved' description 'Installs/Configures site_config' -long_description 'Installs/Configures site_config' version '0.1.0' -issues_url 'https://github.com/chef-training/site_config/issues' if respond_to?(:issues_url) -source_url 'https://github.com/chef-training/site_config' if respond_to?(:source_url) +issues_url 'https://github.com/chef-training/site_config/issues' +source_url 'https://github.com/chef-training/site_config' diff --git a/test/recipes/default_test.rb b/test/recipes/default_test.rb index 5481274..e336db4 100644 --- a/test/recipes/default_test.rb +++ b/test/recipes/default_test.rb @@ -1,5 +1,3 @@ -# # encoding: utf-8 - # Inspec test for recipe site_config::default # The Inspec reference, with examples and extensive documentation, can be