diff options
37 files changed, 62 insertions, 25 deletions
diff --git a/chef-utils/Gemfile b/chef-utils/Gemfile index 87fa3df1f2..2555cf15d9 100644 --- a/chef-utils/Gemfile +++ b/chef-utils/Gemfile @@ -1,3 +1,4 @@ +# frozen_string_literal: true source "https://rubygems.org" gemspec diff --git a/chef-utils/Rakefile b/chef-utils/Rakefile index 4bb4605e0c..237f47f72b 100644 --- a/chef-utils/Rakefile +++ b/chef-utils/Rakefile @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "bundler/gem_tasks" task default: :spec diff --git a/chef-utils/chef-utils.gemspec b/chef-utils/chef-utils.gemspec index c601938245..836fef1ff9 100644 --- a/chef-utils/chef-utils.gemspec +++ b/chef-utils/chef-utils.gemspec @@ -1,3 +1,4 @@ +# frozen_string_literal: true lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "chef-utils/version" diff --git a/chef-utils/lib/chef-utils.rb b/chef-utils/lib/chef-utils.rb index c1b06ed3fb..57a1e4017c 100644 --- a/chef-utils/lib/chef-utils.rb +++ b/chef-utils/lib/chef-utils.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dist.rb b/chef-utils/lib/chef-utils/dist.rb index 2b554e541f..c4fe72960d 100644 --- a/chef-utils/lib/chef-utils/dist.rb +++ b/chef-utils/lib/chef-utils/dist.rb @@ -1,97 +1,98 @@ +# frozen_string_literal: true module ChefUtils # This class is not fully implemented, depending on it is not recommended! module Dist class Apply # The chef-apply product name - PRODUCT = "Chef Infra Apply".freeze + PRODUCT = "Chef Infra Apply" # The chef-apply binary - EXEC = "chef-apply".freeze + EXEC = "chef-apply" end class Automate # name of the automate product - PRODUCT = "Chef Automate".freeze + PRODUCT = "Chef Automate" end class Infra # When referencing a product directly, like Chef (Now Chef Infra) - PRODUCT = "Chef Infra Client".freeze + PRODUCT = "Chef Infra Client" # A short designation for the product, used in Windows event logs # and some nomenclature. - SHORT = "chef".freeze + SHORT = "chef" # The client's alias (chef-client) - CLIENT = "chef-client".freeze + CLIENT = "chef-client" # The chef executable, as in `chef gem install` or `chef generate cookbook` - EXEC = "chef".freeze + EXEC = "chef" # The chef-shell executable - SHELL = "chef-shell".freeze + SHELL = "chef-shell" # Configuration related constants # The chef-shell configuration file - SHELL_CONF = "chef_shell.rb".freeze + SHELL_CONF = "chef_shell.rb" # The user's configuration directory - USER_CONF_DIR = ".chef".freeze + USER_CONF_DIR = ".chef" # The suffix for Chef's /etc/chef, /var/chef and C:\\Chef directories # "chef" => /etc/cinc, /var/cinc, C:\\cinc - DIR_SUFFIX = "chef".freeze + DIR_SUFFIX = "chef" end class Org # product Website address - WEBSITE = "https://chef.io".freeze + WEBSITE = "https://chef.io" # The downloads site - DOWNLOADS_URL = "downloads.chef.io".freeze + DOWNLOADS_URL = "downloads.chef.io" # The legacy conf folder: C:/opscode/chef. Specifically the "opscode" part # DIR_SUFFIX is appended to it in code where relevant - LEGACY_CONF_DIR = "opscode".freeze + LEGACY_CONF_DIR = "opscode" # Enable forcing Chef EULA ENFORCE_LICENSE = true # product patents page - PATENTS = "https://www.chef.io/patents".freeze + PATENTS = "https://www.chef.io/patents" # knife documentation page - KNIFE_DOCS = "https://docs.chef.io/workstation/knife/".freeze + KNIFE_DOCS = "https://docs.chef.io/workstation/knife/" end class Server # The name of the server product - PRODUCT = "Chef Infra Server".freeze + PRODUCT = "Chef Infra Server" # The server's configuration directory - CONF_DIR = "/etc/chef-server".freeze + CONF_DIR = "/etc/chef-server" # The servers's alias (chef-server) - SERVER = "chef-server".freeze + SERVER = "chef-server" # The server's configuration utility - SERVER_CTL = "chef-server-ctl".freeze + SERVER_CTL = "chef-server-ctl" end class Solo # Chef-Solo's product name - PRODUCT = "Chef Infra Solo".freeze + PRODUCT = "Chef Infra Solo" # The chef-solo executable (legacy local mode) - EXEC = "chef-solo".freeze + EXEC = "chef-solo" end class Zero # chef-zero executable - PRODUCT = "Chef Infra Zero".freeze + PRODUCT = "Chef Infra Zero" # The chef-zero executable (local mode) - EXEC = "chef-zero".freeze + EXEC = "chef-zero" end end end diff --git a/chef-utils/lib/chef-utils/dsl/architecture.rb b/chef-utils/lib/chef-utils/dsl/architecture.rb index 1d1cd643b7..e1ac4a099a 100644 --- a/chef-utils/lib/chef-utils/dsl/architecture.rb +++ b/chef-utils/lib/chef-utils/dsl/architecture.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/cloud.rb b/chef-utils/lib/chef-utils/dsl/cloud.rb index 6d9a8b7136..9d4de55656 100644 --- a/chef-utils/lib/chef-utils/dsl/cloud.rb +++ b/chef-utils/lib/chef-utils/dsl/cloud.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/default_paths.rb b/chef-utils/lib/chef-utils/dsl/default_paths.rb index f18bd93157..b2eb359273 100644 --- a/chef-utils/lib/chef-utils/dsl/default_paths.rb +++ b/chef-utils/lib/chef-utils/dsl/default_paths.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/introspection.rb b/chef-utils/lib/chef-utils/dsl/introspection.rb index 35a0be73bd..4edfb8d139 100644 --- a/chef-utils/lib/chef-utils/dsl/introspection.rb +++ b/chef-utils/lib/chef-utils/dsl/introspection.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/os.rb b/chef-utils/lib/chef-utils/dsl/os.rb index b7d2137180..da6850a77a 100644 --- a/chef-utils/lib/chef-utils/dsl/os.rb +++ b/chef-utils/lib/chef-utils/dsl/os.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/path_sanity.rb b/chef-utils/lib/chef-utils/dsl/path_sanity.rb index 1fbfbdccf3..7766ce3176 100644 --- a/chef-utils/lib/chef-utils/dsl/path_sanity.rb +++ b/chef-utils/lib/chef-utils/dsl/path_sanity.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/platform.rb b/chef-utils/lib/chef-utils/dsl/platform.rb index 322cf27cb2..f44cb811bb 100644 --- a/chef-utils/lib/chef-utils/dsl/platform.rb +++ b/chef-utils/lib/chef-utils/dsl/platform.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/platform_family.rb b/chef-utils/lib/chef-utils/dsl/platform_family.rb index d666229688..10d7b35901 100644 --- a/chef-utils/lib/chef-utils/dsl/platform_family.rb +++ b/chef-utils/lib/chef-utils/dsl/platform_family.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/platform_version.rb b/chef-utils/lib/chef-utils/dsl/platform_version.rb index 4d0a9247bd..33a534c5fb 100644 --- a/chef-utils/lib/chef-utils/dsl/platform_version.rb +++ b/chef-utils/lib/chef-utils/dsl/platform_version.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/service.rb b/chef-utils/lib/chef-utils/dsl/service.rb index ed7805806c..4dedc8b8d6 100644 --- a/chef-utils/lib/chef-utils/dsl/service.rb +++ b/chef-utils/lib/chef-utils/dsl/service.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/train_helpers.rb b/chef-utils/lib/chef-utils/dsl/train_helpers.rb index b4be878723..8cc676d34d 100644 --- a/chef-utils/lib/chef-utils/dsl/train_helpers.rb +++ b/chef-utils/lib/chef-utils/dsl/train_helpers.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/virtualization.rb b/chef-utils/lib/chef-utils/dsl/virtualization.rb index ebc5d5228a..d2c1c5b531 100644 --- a/chef-utils/lib/chef-utils/dsl/virtualization.rb +++ b/chef-utils/lib/chef-utils/dsl/virtualization.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/which.rb b/chef-utils/lib/chef-utils/dsl/which.rb index c1aa64c159..49779f92a7 100644 --- a/chef-utils/lib/chef-utils/dsl/which.rb +++ b/chef-utils/lib/chef-utils/dsl/which.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/dsl/windows.rb b/chef-utils/lib/chef-utils/dsl/windows.rb index 67d2852393..dc8cd4ebc0 100644 --- a/chef-utils/lib/chef-utils/dsl/windows.rb +++ b/chef-utils/lib/chef-utils/dsl/windows.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/internal.rb b/chef-utils/lib/chef-utils/internal.rb index aa52005912..e5a7e65c89 100644 --- a/chef-utils/lib/chef-utils/internal.rb +++ b/chef-utils/lib/chef-utils/internal.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/lib/chef-utils/mash.rb b/chef-utils/lib/chef-utils/mash.rb index 00a1444964..484e172b33 100644 --- a/chef-utils/lib/chef-utils/mash.rb +++ b/chef-utils/lib/chef-utils/mash.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Copyright 2009-2016, Dan Kubb # Permission is hereby granted, free of charge, to any person obtaining diff --git a/chef-utils/lib/chef-utils/version.rb b/chef-utils/lib/chef-utils/version.rb index 2904dda245..8d6fb201f8 100644 --- a/chef-utils/lib/chef-utils/version.rb +++ b/chef-utils/lib/chef-utils/version.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 # @@ -15,5 +16,5 @@ module ChefUtils CHEFUTILS_ROOT = File.expand_path("..", __dir__) - VERSION = "16.7.20".freeze + VERSION = "16.7.20" end diff --git a/chef-utils/lib/chef-utils/version_string.rb b/chef-utils/lib/chef-utils/version_string.rb index 744704dc63..345f0ab03e 100644 --- a/chef-utils/lib/chef-utils/version_string.rb +++ b/chef-utils/lib/chef-utils/version_string.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Copyright:: Copyright 2017, Noah Kantrowitz # License:: Apache License, Version 2.0 # diff --git a/chef-utils/spec/spec_helper.rb b/chef-utils/spec/spec_helper.rb index 0b193e2d9a..da4fe0a03e 100644 --- a/chef-utils/spec/spec_helper.rb +++ b/chef-utils/spec/spec_helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "chef-utils" # FIXME: dynamically generate this for accuracy diff --git a/chef-utils/spec/unit/dsl/architecture_spec.rb b/chef-utils/spec/unit/dsl/architecture_spec.rb index 30eab27bfb..a5336d05ef 100644 --- a/chef-utils/spec/unit/dsl/architecture_spec.rb +++ b/chef-utils/spec/unit/dsl/architecture_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/cloud_spec.rb b/chef-utils/spec/unit/dsl/cloud_spec.rb index 6cb7753b32..8a718dc37d 100644 --- a/chef-utils/spec/unit/dsl/cloud_spec.rb +++ b/chef-utils/spec/unit/dsl/cloud_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/dsl_spec.rb b/chef-utils/spec/unit/dsl/dsl_spec.rb index c03f3224ec..fd8869222f 100644 --- a/chef-utils/spec/unit/dsl/dsl_spec.rb +++ b/chef-utils/spec/unit/dsl/dsl_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/introspection_spec.rb b/chef-utils/spec/unit/dsl/introspection_spec.rb index 9275a9fc79..2a841dee68 100644 --- a/chef-utils/spec/unit/dsl/introspection_spec.rb +++ b/chef-utils/spec/unit/dsl/introspection_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/os_spec.rb b/chef-utils/spec/unit/dsl/os_spec.rb index 9230670487..967517b957 100644 --- a/chef-utils/spec/unit/dsl/os_spec.rb +++ b/chef-utils/spec/unit/dsl/os_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/path_sanity_spec.rb b/chef-utils/spec/unit/dsl/path_sanity_spec.rb index c75b99a751..50cadd7466 100644 --- a/chef-utils/spec/unit/dsl/path_sanity_spec.rb +++ b/chef-utils/spec/unit/dsl/path_sanity_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/platform_family_spec.rb b/chef-utils/spec/unit/dsl/platform_family_spec.rb index bcd0f3412c..fdf4584afd 100644 --- a/chef-utils/spec/unit/dsl/platform_family_spec.rb +++ b/chef-utils/spec/unit/dsl/platform_family_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/platform_spec.rb b/chef-utils/spec/unit/dsl/platform_spec.rb index 93b61f0532..216e15f112 100644 --- a/chef-utils/spec/unit/dsl/platform_spec.rb +++ b/chef-utils/spec/unit/dsl/platform_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/service_spec.rb b/chef-utils/spec/unit/dsl/service_spec.rb index 0288343940..bfb78441b2 100644 --- a/chef-utils/spec/unit/dsl/service_spec.rb +++ b/chef-utils/spec/unit/dsl/service_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/virtualization_spec.rb b/chef-utils/spec/unit/dsl/virtualization_spec.rb index 2b26f5514f..6ee7eb3d3b 100644 --- a/chef-utils/spec/unit/dsl/virtualization_spec.rb +++ b/chef-utils/spec/unit/dsl/virtualization_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/which_spec.rb b/chef-utils/spec/unit/dsl/which_spec.rb index 96e6296e5a..5ea5f6ccea 100644 --- a/chef-utils/spec/unit/dsl/which_spec.rb +++ b/chef-utils/spec/unit/dsl/which_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/dsl/windows_spec.rb b/chef-utils/spec/unit/dsl/windows_spec.rb index a1d20e854b..423cfe5187 100644 --- a/chef-utils/spec/unit/dsl/windows_spec.rb +++ b/chef-utils/spec/unit/dsl/windows_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 diff --git a/chef-utils/spec/unit/mash_spec.rb b/chef-utils/spec/unit/mash_spec.rb index 2991592ec1..3f83823773 100644 --- a/chef-utils/spec/unit/mash_spec.rb +++ b/chef-utils/spec/unit/mash_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Author:: Matthew Kent (<mkent@magoazul.com>) # Copyright:: Copyright (c) Chef Software Inc. |