summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-10-30 16:49:55 -0700
committerGitHub <noreply@github.com>2020-10-30 16:49:55 -0700
commit0053b68ff094c8a8974fa2fcd5e96b47b9f62d89 (patch)
tree8979f54237f581bae01e624ed0e406757ec60968
parent4e7cf7045714da141d2d35efe2b508ed7479c269 (diff)
parent9fc84b6b6119938004d3806afd4bc29dd9462d95 (diff)
downloadohai-0053b68ff094c8a8974fa2fcd5e96b47b9f62d89.tar.gz
Merge pull request #1551 from chef/frozen_strings_v2
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--Gemfile3
-rw-r--r--Rakefile1
-rwxr-xr-xbin/ohai1
-rw-r--r--lib/ohai.rb1
-rw-r--r--lib/ohai/application.rb1
-rw-r--r--lib/ohai/common/dmi.rb1
-rw-r--r--lib/ohai/config.rb1
-rw-r--r--lib/ohai/dsl.rb1
-rw-r--r--lib/ohai/dsl/plugin.rb1
-rw-r--r--lib/ohai/dsl/plugin/versionvii.rb1
-rw-r--r--lib/ohai/exception.rb1
-rw-r--r--lib/ohai/hints.rb1
-rw-r--r--lib/ohai/log.rb1
-rw-r--r--lib/ohai/mash.rb1
-rw-r--r--lib/ohai/mixin/azure_metadata.rb3
-rw-r--r--lib/ohai/mixin/chef_utils_wiring.rb1
-rw-r--r--lib/ohai/mixin/command.rb1
-rw-r--r--lib/ohai/mixin/constant_helper.rb1
-rw-r--r--lib/ohai/mixin/dmi_decode.rb1
-rw-r--r--lib/ohai/mixin/do_metadata.rb5
-rw-r--r--lib/ohai/mixin/ec2_metadata.rb3
-rw-r--r--lib/ohai/mixin/gce_metadata.rb5
-rw-r--r--lib/ohai/mixin/http_helper.rb1
-rw-r--r--lib/ohai/mixin/network_helper.rb1
-rw-r--r--lib/ohai/mixin/os.rb1
-rw-r--r--lib/ohai/mixin/scaleway_metadata.rb5
-rw-r--r--lib/ohai/mixin/seconds_to_human.rb1
-rw-r--r--lib/ohai/mixin/shell_out.rb1
-rw-r--r--lib/ohai/mixin/softlayer_metadata.rb3
-rw-r--r--lib/ohai/mixin/string.rb1
-rw-r--r--lib/ohai/mixin/train_helpers.rb1
-rw-r--r--lib/ohai/mixin/which.rb1
-rw-r--r--lib/ohai/plugin_config.rb1
-rw-r--r--lib/ohai/plugins/aix/kernel.rb1
-rw-r--r--lib/ohai/plugins/aix/memory.rb1
-rw-r--r--lib/ohai/plugins/aix/network.rb1
-rw-r--r--lib/ohai/plugins/aix/platform.rb1
-rw-r--r--lib/ohai/plugins/aix/uptime.rb1
-rw-r--r--lib/ohai/plugins/azure.rb1
-rw-r--r--lib/ohai/plugins/bsd/virtualization.rb1
-rw-r--r--lib/ohai/plugins/c.rb1
-rw-r--r--lib/ohai/plugins/chef.rb1
-rw-r--r--lib/ohai/plugins/cloud.rb1
-rw-r--r--lib/ohai/plugins/command.rb1
-rw-r--r--lib/ohai/plugins/cpu.rb1
-rw-r--r--lib/ohai/plugins/darwin/hardware.rb1
-rw-r--r--lib/ohai/plugins/darwin/memory.rb1
-rw-r--r--lib/ohai/plugins/darwin/network.rb1
-rw-r--r--lib/ohai/plugins/darwin/platform.rb1
-rw-r--r--lib/ohai/plugins/darwin/virtualization.rb1
-rw-r--r--lib/ohai/plugins/digital_ocean.rb1
-rw-r--r--lib/ohai/plugins/dmi.rb1
-rw-r--r--lib/ohai/plugins/docker.rb1
-rw-r--r--lib/ohai/plugins/dragonflybsd/memory.rb1
-rw-r--r--lib/ohai/plugins/dragonflybsd/network.rb1
-rw-r--r--lib/ohai/plugins/dragonflybsd/platform.rb1
-rw-r--r--lib/ohai/plugins/ec2.rb1
-rw-r--r--lib/ohai/plugins/erlang.rb1
-rw-r--r--lib/ohai/plugins/eucalyptus.rb1
-rw-r--r--lib/ohai/plugins/fips.rb1
-rw-r--r--lib/ohai/plugins/freebsd/memory.rb1
-rw-r--r--lib/ohai/plugins/freebsd/network.rb1
-rw-r--r--lib/ohai/plugins/freebsd/platform.rb1
-rw-r--r--lib/ohai/plugins/gce.rb1
-rw-r--r--lib/ohai/plugins/haskell.rb1
-rw-r--r--lib/ohai/plugins/hostname.rb1
-rw-r--r--lib/ohai/plugins/init_package.rb1
-rw-r--r--lib/ohai/plugins/java.rb1
-rw-r--r--lib/ohai/plugins/joyent.rb1
-rw-r--r--lib/ohai/plugins/kernel.rb1
-rw-r--r--lib/ohai/plugins/keys.rb1
-rw-r--r--lib/ohai/plugins/languages.rb1
-rw-r--r--lib/ohai/plugins/libvirt.rb1
-rw-r--r--lib/ohai/plugins/linode.rb1
-rw-r--r--lib/ohai/plugins/linux/block_device.rb1
-rw-r--r--lib/ohai/plugins/linux/hostnamectl.rb1
-rw-r--r--lib/ohai/plugins/linux/interrupts.rb1
-rw-r--r--lib/ohai/plugins/linux/ipc.rb1
-rw-r--r--lib/ohai/plugins/linux/lsb.rb1
-rw-r--r--lib/ohai/plugins/linux/lspci.rb1
-rw-r--r--lib/ohai/plugins/linux/machineid.rb1
-rw-r--r--lib/ohai/plugins/linux/mdadm.rb1
-rw-r--r--lib/ohai/plugins/linux/memory.rb1
-rw-r--r--lib/ohai/plugins/linux/network.rb1
-rw-r--r--lib/ohai/plugins/linux/platform.rb1
-rw-r--r--lib/ohai/plugins/linux/selinux.rb1
-rw-r--r--lib/ohai/plugins/linux/sessions.rb1
-rw-r--r--lib/ohai/plugins/linux/sysctl.rb1
-rw-r--r--lib/ohai/plugins/linux/systemd_paths.rb1
-rw-r--r--lib/ohai/plugins/linux/virtualization.rb1
-rw-r--r--lib/ohai/plugins/netbsd/memory.rb1
-rw-r--r--lib/ohai/plugins/netbsd/network.rb1
-rw-r--r--lib/ohai/plugins/netbsd/platform.rb1
-rw-r--r--lib/ohai/plugins/network.rb1
-rw-r--r--lib/ohai/plugins/ohai.rb1
-rw-r--r--lib/ohai/plugins/ohai_time.rb1
-rw-r--r--lib/ohai/plugins/openbsd/memory.rb1
-rw-r--r--lib/ohai/plugins/openbsd/network.rb1
-rw-r--r--lib/ohai/plugins/openbsd/platform.rb1
-rw-r--r--lib/ohai/plugins/openstack.rb1
-rw-r--r--lib/ohai/plugins/os.rb1
-rw-r--r--lib/ohai/plugins/packages.rb1
-rw-r--r--lib/ohai/plugins/passwd.rb1
-rw-r--r--lib/ohai/plugins/platform.rb1
-rw-r--r--lib/ohai/plugins/ps.rb1
-rw-r--r--lib/ohai/plugins/rackspace.rb1
-rw-r--r--lib/ohai/plugins/root_group.rb1
-rw-r--r--lib/ohai/plugins/scala.rb1
-rw-r--r--lib/ohai/plugins/scaleway.rb1
-rw-r--r--lib/ohai/plugins/scsi.rb1
-rw-r--r--lib/ohai/plugins/shells.rb1
-rw-r--r--lib/ohai/plugins/softlayer.rb1
-rw-r--r--lib/ohai/plugins/solaris2/dmi.rb1
-rw-r--r--lib/ohai/plugins/solaris2/memory.rb1
-rw-r--r--lib/ohai/plugins/solaris2/network.rb1
-rw-r--r--lib/ohai/plugins/solaris2/platform.rb1
-rw-r--r--lib/ohai/plugins/solaris2/virtualization.rb1
-rw-r--r--lib/ohai/plugins/ssh_host_key.rb1
-rw-r--r--lib/ohai/plugins/sysconf.rb1
-rw-r--r--lib/ohai/plugins/timezone.rb1
-rw-r--r--lib/ohai/plugins/train.rb1
-rw-r--r--lib/ohai/plugins/uptime.rb1
-rw-r--r--lib/ohai/plugins/virtualbox.rb1
-rw-r--r--lib/ohai/plugins/vmware.rb1
-rw-r--r--lib/ohai/plugins/windows/dmi.rb1
-rw-r--r--lib/ohai/plugins/windows/drivers.rb1
-rw-r--r--lib/ohai/plugins/windows/memory.rb1
-rw-r--r--lib/ohai/plugins/windows/network.rb1
-rw-r--r--lib/ohai/plugins/windows/platform.rb1
-rw-r--r--lib/ohai/plugins/windows/system_enclosure.rb1
-rw-r--r--lib/ohai/plugins/windows/virtualization.rb1
-rw-r--r--lib/ohai/plugins/zpools.rb1
-rw-r--r--lib/ohai/provides_map.rb1
-rw-r--r--lib/ohai/runner.rb1
-rw-r--r--lib/ohai/system.rb1
-rw-r--r--lib/ohai/train_transport.rb1
-rw-r--r--lib/ohai/util/file_helper.rb1
-rw-r--r--lib/ohai/util/ip_helper.rb1
-rw-r--r--lib/ohai/util/win32.rb1
-rw-r--r--lib/ohai/version.rb3
-rw-r--r--ohai.gemspec1
-rw-r--r--tasks/spellcheck.rb1
142 files changed, 153 insertions, 11 deletions
diff --git a/Gemfile b/Gemfile
index 8e609dac..7c6c16c4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
source "https://rubygems.org"
gemspec
@@ -22,6 +23,6 @@ end
group :debug do
gem "pry"
gem "pry-byebug"
- gem "pry-stack_explorer", "~> 0.4.0" # pin until we drop ruby < 2.6
+ gem "pry-stack_explorer"
gem "rb-readline"
end
diff --git a/Rakefile b/Rakefile
index 6d6a3a2c..f323ce12 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
require "bundler/gem_tasks"
begin
diff --git a/bin/ohai b/bin/ohai
index 06024da1..2d86ffa9 100755
--- a/bin/ohai
+++ b/bin/ohai
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) 2008-2016 Chef Software, Inc.
diff --git a/lib/ohai.rb b/lib/ohai.rb
index 040141b0..031dd00c 100644
--- a/lib/ohai.rb
+++ b/lib/ohai.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/application.rb b/lib/ohai/application.rb
index 64472245..b468c1a3 100644
--- a/lib/ohai/application.rb
+++ b/lib/ohai/application.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2009 Mathieu Sauve-Frankel.
diff --git a/lib/ohai/common/dmi.rb b/lib/ohai/common/dmi.rb
index d9aefa74..faa440a7 100644
--- a/lib/ohai/common/dmi.rb
+++ b/lib/ohai/common/dmi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Kurt Yoder (ktyopscode@yoderhome.com)
# Copyright:: Copyright (c) 2010 Kurt Yoder
diff --git a/lib/ohai/config.rb b/lib/ohai/config.rb
index f86a2652..88200cf6 100644
--- a/lib/ohai/config.rb
+++ b/lib/ohai/config.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Claire McQuin (<claire@chef.io>)
diff --git a/lib/ohai/dsl.rb b/lib/ohai/dsl.rb
index 2d7a437b..535529e8 100644
--- a/lib/ohai/dsl.rb
+++ b/lib/ohai/dsl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Serdar Sutay (<serdar@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/dsl/plugin.rb b/lib/ohai/dsl/plugin.rb
index 7e72c41f..cc561d36 100644
--- a/lib/ohai/dsl/plugin.rb
+++ b/lib/ohai/dsl/plugin.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Claire McQuin (<claire@chef.io>)
diff --git a/lib/ohai/dsl/plugin/versionvii.rb b/lib/ohai/dsl/plugin/versionvii.rb
index 7e41be24..6386c2ed 100644
--- a/lib/ohai/dsl/plugin/versionvii.rb
+++ b/lib/ohai/dsl/plugin/versionvii.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Serdar Sutay (<serdar@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/exception.rb b/lib/ohai/exception.rb
index 995f894e..3c43fb5c 100644
--- a/lib/ohai/exception.rb
+++ b/lib/ohai/exception.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/hints.rb b/lib/ohai/hints.rb
index 85e3b49e..19e85a00 100644
--- a/lib/ohai/hints.rb
+++ b/lib/ohai/hints.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Serdar Sutay (<serdar@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/log.rb b/lib/ohai/log.rb
index 08f1cba2..664afca4 100644
--- a/lib/ohai/log.rb
+++ b/lib/ohai/log.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/mash.rb b/lib/ohai/mash.rb
index d386af25..c303ba32 100644
--- a/lib/ohai/mash.rb
+++ b/lib/ohai/mash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/mixin/azure_metadata.rb b/lib/ohai/mixin/azure_metadata.rb
index ded5077b..65b26e8b 100644
--- a/lib/ohai/mixin/azure_metadata.rb
+++ b/lib/ohai/mixin/azure_metadata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Smith (<tsmith@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
@@ -31,7 +32,7 @@ module Ohai
#
module AzureMetadata
- AZURE_METADATA_ADDR ||= "169.254.169.254".freeze
+ AZURE_METADATA_ADDR ||= "169.254.169.254"
# it's important that the newer versions are at the end of this array so we can skip sorting it
AZURE_SUPPORTED_VERSIONS ||= %w{ 2017-04-02 2017-08-01 2017-12-01 2018-02-01 2018-04-02
diff --git a/lib/ohai/mixin/chef_utils_wiring.rb b/lib/ohai/mixin/chef_utils_wiring.rb
index cb037d43..22ebdd33 100644
--- a/lib/ohai/mixin/chef_utils_wiring.rb
+++ b/lib/ohai/mixin/chef_utils_wiring.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/mixin/command.rb b/lib/ohai/mixin/command.rb
index 030844a7..02bd724a 100644
--- a/lib/ohai/mixin/command.rb
+++ b/lib/ohai/mixin/command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
$stderr.puts "WARN: Ohai::Mixin::Command is deprecated, please use Ohai::Mixin::ShellOut or remove if the reference is unnecessary"
require_relative "shell_out"
Ohai::Mixin::Command = Ohai::Mixin::ShellOut unless defined?(Ohai::Mixin::Command)
diff --git a/lib/ohai/mixin/constant_helper.rb b/lib/ohai/mixin/constant_helper.rb
index 2d8c9c26..a02aa6fa 100644
--- a/lib/ohai/mixin/constant_helper.rb
+++ b/lib/ohai/mixin/constant_helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Serdar Sutay (<serdar@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/mixin/dmi_decode.rb b/lib/ohai/mixin/dmi_decode.rb
index 57143d7b..354e337d 100644
--- a/lib/ohai/mixin/dmi_decode.rb
+++ b/lib/ohai/mixin/dmi_decode.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Smith <tsmith@chef.io>
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/mixin/do_metadata.rb b/lib/ohai/mixin/do_metadata.rb
index b390b2ed..b87806a3 100644
--- a/lib/ohai/mixin/do_metadata.rb
+++ b/lib/ohai/mixin/do_metadata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
# Author:: Dylan Page (<dpage@digitalocean.com>)
# License:: Apache License, Version 2.0
@@ -20,8 +21,8 @@ module Ohai
module Mixin
module DOMetadata
- DO_METADATA_ADDR ||= "169.254.169.254".freeze
- DO_METADATA_URL ||= "/metadata/v1.json".freeze
+ DO_METADATA_ADDR ||= "169.254.169.254"
+ DO_METADATA_URL ||= "/metadata/v1.json"
def http_client
Net::HTTP.start(DO_METADATA_ADDR).tap { |h| h.read_timeout = 6 }
diff --git a/lib/ohai/mixin/ec2_metadata.rb b/lib/ohai/mixin/ec2_metadata.rb
index f24472d2..45150f40 100644
--- a/lib/ohai/mixin/ec2_metadata.rb
+++ b/lib/ohai/mixin/ec2_metadata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Dysinger (<tim@dysinger.net>)
# Author:: Benjamin Black (<bb@chef.io>)
@@ -39,7 +40,7 @@ module Ohai
#
module Ec2Metadata
- EC2_METADATA_ADDR ||= "169.254.169.254".freeze
+ EC2_METADATA_ADDR ||= "169.254.169.254"
EC2_SUPPORTED_VERSIONS ||= %w{ 1.0 2007-01-19 2007-03-01 2007-08-29 2007-10-10 2007-12-15
2008-02-01 2008-09-01 2009-04-04 2011-01-01 2011-05-01 2012-01-12
2014-02-25 2014-11-05 2015-10-20 2016-04-19 2016-06-30 2016-09-02 }.freeze
diff --git a/lib/ohai/mixin/gce_metadata.rb b/lib/ohai/mixin/gce_metadata.rb
index 280d72dd..8ea838aa 100644
--- a/lib/ohai/mixin/gce_metadata.rb
+++ b/lib/ohai/mixin/gce_metadata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Ranjib Dey (<dey.ranjib@gmail.com>)
# License:: Apache License, Version 2.0
@@ -21,8 +22,8 @@ module Ohai
module GCEMetadata
# Trailing dot to host is added to avoid DNS search path
- GCE_METADATA_ADDR ||= "metadata.google.internal.".freeze
- GCE_METADATA_URL ||= "/computeMetadata/v1/?recursive=true".freeze
+ GCE_METADATA_ADDR ||= "metadata.google.internal."
+ GCE_METADATA_URL ||= "/computeMetadata/v1/?recursive=true"
# fetch the meta content with a timeout and the required header
def http_get(uri)
diff --git a/lib/ohai/mixin/http_helper.rb b/lib/ohai/mixin/http_helper.rb
index 592ac896..6f02f6bf 100644
--- a/lib/ohai/mixin/http_helper.rb
+++ b/lib/ohai/mixin/http_helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/mixin/network_helper.rb b/lib/ohai/mixin/network_helper.rb
index 829da6f6..bb6d1367 100644
--- a/lib/ohai/mixin/network_helper.rb
+++ b/lib/ohai/mixin/network_helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Serdar Sutay (<serdar@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/mixin/os.rb b/lib/ohai/mixin/os.rb
index 8cbbdb06..00837092 100644
--- a/lib/ohai/mixin/os.rb
+++ b/lib/ohai/mixin/os.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/mixin/scaleway_metadata.rb b/lib/ohai/mixin/scaleway_metadata.rb
index cef5beb6..04bad159 100644
--- a/lib/ohai/mixin/scaleway_metadata.rb
+++ b/lib/ohai/mixin/scaleway_metadata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Jonathan Amiez (<jonathan.amiez@gmail.com>)
# License:: Apache License, Version 2.0
@@ -20,8 +21,8 @@ module Ohai
module Mixin
module ScalewayMetadata
- SCALEWAY_METADATA_ADDR ||= "169.254.42.42".freeze
- SCALEWAY_METADATA_URL ||= "/conf?format=json".freeze
+ SCALEWAY_METADATA_ADDR ||= "169.254.42.42"
+ SCALEWAY_METADATA_URL ||= "/conf?format=json"
# @return [Net::HTTP] net/http object without timeout set to 6
def http_client
diff --git a/lib/ohai/mixin/seconds_to_human.rb b/lib/ohai/mixin/seconds_to_human.rb
index 9649fc5f..97b388de 100644
--- a/lib/ohai/mixin/seconds_to_human.rb
+++ b/lib/ohai/mixin/seconds_to_human.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/mixin/shell_out.rb b/lib/ohai/mixin/shell_out.rb
index 18c2ee38..d91a1565 100644
--- a/lib/ohai/mixin/shell_out.rb
+++ b/lib/ohai/mixin/shell_out.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Tim Smith (<tsmith@chef.io>)
diff --git a/lib/ohai/mixin/softlayer_metadata.rb b/lib/ohai/mixin/softlayer_metadata.rb
index b2fc9c6c..ffd2a528 100644
--- a/lib/ohai/mixin/softlayer_metadata.rb
+++ b/lib/ohai/mixin/softlayer_metadata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Alexey Karpik <alexey.karpik@rightscale.com>
# Author:: Peter Schroeter <peter.schroeter@rightscale.com>
@@ -22,7 +23,7 @@ require "uri" unless defined?(URI)
# https://softlayer.github.io/reference/services/SoftLayer_Resource_Metadata/
module ::Ohai::Mixin::SoftlayerMetadata
- SOFTLAYER_API_QUERY_URL ||= "https://api.service.softlayer.com/rest/v3.1/SoftLayer_Resource_Metadata".freeze
+ SOFTLAYER_API_QUERY_URL ||= "https://api.service.softlayer.com/rest/v3.1/SoftLayer_Resource_Metadata"
# fetch metadata items and build out hash of data
#
diff --git a/lib/ohai/mixin/string.rb b/lib/ohai/mixin/string.rb
index a0c7bcb8..7f1811ad 100644
--- a/lib/ohai/mixin/string.rb
+++ b/lib/ohai/mixin/string.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: James Gartrell (<jgartrel@gmail.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/mixin/train_helpers.rb b/lib/ohai/mixin/train_helpers.rb
index 92951388..809aa60e 100644
--- a/lib/ohai/mixin/train_helpers.rb
+++ b/lib/ohai/mixin/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/lib/ohai/mixin/which.rb b/lib/ohai/mixin/which.rb
index b21ee640..b2821e36 100644
--- a/lib/ohai/mixin/which.rb
+++ b/lib/ohai/mixin/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/lib/ohai/plugin_config.rb b/lib/ohai/plugin_config.rb
index aad56aab..9e622cb6 100644
--- a/lib/ohai/plugin_config.rb
+++ b/lib/ohai/plugin_config.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/aix/kernel.rb b/lib/ohai/plugins/aix/kernel.rb
index d7879902..3d8178c8 100644
--- a/lib/ohai/plugins/aix/kernel.rb
+++ b/lib/ohai/plugins/aix/kernel.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Joshua Timberman <joshua@chef.io>
# Author:: Isa Farnik (<isa@chef.io>)
diff --git a/lib/ohai/plugins/aix/memory.rb b/lib/ohai/plugins/aix/memory.rb
index b4832a63..2869dcdc 100644
--- a/lib/ohai/plugins/aix/memory.rb
+++ b/lib/ohai/plugins/aix/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Joshua Timberman <joshua@chef.io>
# Author:: Isa Farnik (<isa@chef.io>)
diff --git a/lib/ohai/plugins/aix/network.rb b/lib/ohai/plugins/aix/network.rb
index 9a24ebab..e16f2004 100644
--- a/lib/ohai/plugins/aix/network.rb
+++ b/lib/ohai/plugins/aix/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Kaustubh Deorukhkar (<kaustubh@clogeny.com>)
# Author:: Prabhu Das (<prabhu.das@clogeny.com>)
diff --git a/lib/ohai/plugins/aix/platform.rb b/lib/ohai/plugins/aix/platform.rb
index 1d04669b..10e67030 100644
--- a/lib/ohai/plugins/aix/platform.rb
+++ b/lib/ohai/plugins/aix/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Joshua Timberman <joshua@chef.io>
# Author:: Isa Farnik (<isa@chef.io>)
diff --git a/lib/ohai/plugins/aix/uptime.rb b/lib/ohai/plugins/aix/uptime.rb
index 7b5d60b3..a273465f 100644
--- a/lib/ohai/plugins/aix/uptime.rb
+++ b/lib/ohai/plugins/aix/uptime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Kurt Yoder (<ktyopscode@yoderhome.com>)
# Author:: Isa Farnik (<isa@chef.io>)
diff --git a/lib/ohai/plugins/azure.rb b/lib/ohai/plugins/azure.rb
index 99eae86c..f8224666 100644
--- a/lib/ohai/plugins/azure.rb
+++ b/lib/ohai/plugins/azure.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
#
diff --git a/lib/ohai/plugins/bsd/virtualization.rb b/lib/ohai/plugins/bsd/virtualization.rb
index 445d1e75..dde694e0 100644
--- a/lib/ohai/plugins/bsd/virtualization.rb
+++ b/lib/ohai/plugins/bsd/virtualization.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/c.rb b/lib/ohai/plugins/c.rb
index e3eee7d7..fb064e81 100644
--- a/lib/ohai/plugins/c.rb
+++ b/lib/ohai/plugins/c.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Doug MacEachern <dougm@vmware.com>
# Copyright:: Copyright (c) 2010 VMware, Inc.
diff --git a/lib/ohai/plugins/chef.rb b/lib/ohai/plugins/chef.rb
index fc588ea3..8a01e68c 100644
--- a/lib/ohai/plugins/chef.rb
+++ b/lib/ohai/plugins/chef.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tollef Fog Heen <tfheen@err.no>
# Copyright:: Copyright (c) 2010 Tollef Fog Heen
diff --git a/lib/ohai/plugins/cloud.rb b/lib/ohai/plugins/cloud.rb
index 9570b712..a49044fb 100644
--- a/lib/ohai/plugins/cloud.rb
+++ b/lib/ohai/plugins/cloud.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Cary Penniman (<cary@rightscale.com>)
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/command.rb b/lib/ohai/plugins/command.rb
index a07f6079..a9c41362 100644
--- a/lib/ohai/plugins/command.rb
+++ b/lib/ohai/plugins/command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/cpu.rb b/lib/ohai/plugins/cpu.rb
index fd410dd2..9cbb7abb 100644
--- a/lib/ohai/plugins/cpu.rb
+++ b/lib/ohai/plugins/cpu.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Bryan McLellan (btm@loftninjas.org)
diff --git a/lib/ohai/plugins/darwin/hardware.rb b/lib/ohai/plugins/darwin/hardware.rb
index 87535b27..a24fa756 100644
--- a/lib/ohai/plugins/darwin/hardware.rb
+++ b/lib/ohai/plugins/darwin/hardware.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Nate Walck (<nate.walck@gmail.com>)
# Copyright:: Copyright (c) 2016-present Facebook, Inc.
diff --git a/lib/ohai/plugins/darwin/memory.rb b/lib/ohai/plugins/darwin/memory.rb
index 306e4df1..d76bd5db 100644
--- a/lib/ohai/plugins/darwin/memory.rb
+++ b/lib/ohai/plugins/darwin/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Patrick Collins (<pat@burned.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/darwin/network.rb b/lib/ohai/plugins/darwin/network.rb
index 9bc04343..ddbd59ff 100644
--- a/lib/ohai/plugins/darwin/network.rb
+++ b/lib/ohai/plugins/darwin/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Benjamin Black (<bb@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/darwin/platform.rb b/lib/ohai/plugins/darwin/platform.rb
index c744ad53..7ea38c12 100644
--- a/lib/ohai/plugins/darwin/platform.rb
+++ b/lib/ohai/plugins/darwin/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/darwin/virtualization.rb b/lib/ohai/plugins/darwin/virtualization.rb
index c14d0857..ac5a096b 100644
--- a/lib/ohai/plugins/darwin/virtualization.rb
+++ b/lib/ohai/plugins/darwin/virtualization.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Pavel Yudin (<pyudin@parallels.com>)
# Author:: Tim Smith (<tsmith@chef.io>)
diff --git a/lib/ohai/plugins/digital_ocean.rb b/lib/ohai/plugins/digital_ocean.rb
index 884cc76e..d18304b6 100644
--- a/lib/ohai/plugins/digital_ocean.rb
+++ b/lib/ohai/plugins/digital_ocean.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Dylan Page (<dpage@digitalocean.com>)
# Author:: Stafford Brunk (<stafford.brunk@gmail.com>)
diff --git a/lib/ohai/plugins/dmi.rb b/lib/ohai/plugins/dmi.rb
index 75f026c3..c9d4ecaf 100644
--- a/lib/ohai/plugins/dmi.rb
+++ b/lib/ohai/plugins/dmi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Kurt Yoder (ktyopscode@yoderhome.com)
# Copyright:: Copyright (c) 2010 Kurt Yoder
diff --git a/lib/ohai/plugins/docker.rb b/lib/ohai/plugins/docker.rb
index 5e9e8ec0..92e7a5c4 100644
--- a/lib/ohai/plugins/docker.rb
+++ b/lib/ohai/plugins/docker.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/dragonflybsd/memory.rb b/lib/ohai/plugins/dragonflybsd/memory.rb
index 28787526..250f4289 100644
--- a/lib/ohai/plugins/dragonflybsd/memory.rb
+++ b/lib/ohai/plugins/dragonflybsd/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/dragonflybsd/network.rb b/lib/ohai/plugins/dragonflybsd/network.rb
index 401bf73e..8296f99c 100644
--- a/lib/ohai/plugins/dragonflybsd/network.rb
+++ b/lib/ohai/plugins/dragonflybsd/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/dragonflybsd/platform.rb b/lib/ohai/plugins/dragonflybsd/platform.rb
index ca80f7f7..f237e809 100644
--- a/lib/ohai/plugins/dragonflybsd/platform.rb
+++ b/lib/ohai/plugins/dragonflybsd/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/ec2.rb b/lib/ohai/plugins/ec2.rb
index abe23455..1942ae42 100644
--- a/lib/ohai/plugins/ec2.rb
+++ b/lib/ohai/plugins/ec2.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Dysinger (<tim@dysinger.net>)
# Author:: Benjamin Black (<bb@chef.io>)
diff --git a/lib/ohai/plugins/erlang.rb b/lib/ohai/plugins/erlang.rb
index 153c90d1..be33baba 100644
--- a/lib/ohai/plugins/erlang.rb
+++ b/lib/ohai/plugins/erlang.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Joe Williams (<joe@joetify.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/eucalyptus.rb b/lib/ohai/plugins/eucalyptus.rb
index 079fcd53..31d69c2d 100644
--- a/lib/ohai/plugins/eucalyptus.rb
+++ b/lib/ohai/plugins/eucalyptus.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Dysinger (<tim@dysinger.net>)
# Author:: Benjamin Black (<bb@chef.io>)
diff --git a/lib/ohai/plugins/fips.rb b/lib/ohai/plugins/fips.rb
index 13b0c3b7..7cf40fdf 100644
--- a/lib/ohai/plugins/fips.rb
+++ b/lib/ohai/plugins/fips.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Matt Wrock (<matt@mattwrock.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/freebsd/memory.rb b/lib/ohai/plugins/freebsd/memory.rb
index 0b0cf327..d7c04338 100644
--- a/lib/ohai/plugins/freebsd/memory.rb
+++ b/lib/ohai/plugins/freebsd/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/freebsd/network.rb b/lib/ohai/plugins/freebsd/network.rb
index 1263086a..9ec9498c 100644
--- a/lib/ohai/plugins/freebsd/network.rb
+++ b/lib/ohai/plugins/freebsd/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/freebsd/platform.rb b/lib/ohai/plugins/freebsd/platform.rb
index 957f0a30..66b90b53 100644
--- a/lib/ohai/plugins/freebsd/platform.rb
+++ b/lib/ohai/plugins/freebsd/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/gce.rb b/lib/ohai/plugins/gce.rb
index cd0bd63c..90d63e96 100644
--- a/lib/ohai/plugins/gce.rb
+++ b/lib/ohai/plugins/gce.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Ranjib Dey (<dey.ranjib@google.com>)
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/haskell.rb b/lib/ohai/plugins/haskell.rb
index 50d08b3d..5ae27ae1 100644
--- a/lib/ohai/plugins/haskell.rb
+++ b/lib/ohai/plugins/haskell.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
# Author:: Chris Dituri (<csdituri@gmail.com>)
# Copyright:: Copyright (c) 2016 Chris Dituri
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/hostname.rb b/lib/ohai/plugins/hostname.rb
index ed9e8664..0e6c7a4d 100644
--- a/lib/ohai/plugins/hostname.rb
+++ b/lib/ohai/plugins/hostname.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Benjamin Black (<nostromo@gmail.com>)
diff --git a/lib/ohai/plugins/init_package.rb b/lib/ohai/plugins/init_package.rb
index 20a8f512..fa2b9453 100644
--- a/lib/ohai/plugins/init_package.rb
+++ b/lib/ohai/plugins/init_package.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Caleb Tennis (<caleb.tennis@gmail.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/java.rb b/lib/ohai/plugins/java.rb
index 0dcebc95..55b9ce70 100644
--- a/lib/ohai/plugins/java.rb
+++ b/lib/ohai/plugins/java.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Benjamin Black (<bb@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/joyent.rb b/lib/ohai/plugins/joyent.rb
index 8df1774c..84a7c313 100644
--- a/lib/ohai/plugins/joyent.rb
+++ b/lib/ohai/plugins/joyent.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author: sawanoboriyu@higanworks.com
# Copyright (C) 2014 HiganWorks LLC
diff --git a/lib/ohai/plugins/kernel.rb b/lib/ohai/plugins/kernel.rb
index 2ec841df..d6de9e53 100644
--- a/lib/ohai/plugins/kernel.rb
+++ b/lib/ohai/plugins/kernel.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Benjamin Black (<nostromo@gmail.com>)
diff --git a/lib/ohai/plugins/keys.rb b/lib/ohai/plugins/keys.rb
index 1d962d95..920a06b5 100644
--- a/lib/ohai/plugins/keys.rb
+++ b/lib/ohai/plugins/keys.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Cookbook Name:: apache2
# Recipe:: default
diff --git a/lib/ohai/plugins/languages.rb b/lib/ohai/plugins/languages.rb
index bd20b1b4..68e87d8a 100644
--- a/lib/ohai/plugins/languages.rb
+++ b/lib/ohai/plugins/languages.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/libvirt.rb b/lib/ohai/plugins/libvirt.rb
index dd4861f3..15b0fa40 100644
--- a/lib/ohai/plugins/libvirt.rb
+++ b/lib/ohai/plugins/libvirt.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Benjamin Black (<bb@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/linode.rb b/lib/ohai/plugins/linode.rb
index 60cdb210..c1cb8ae3 100644
--- a/lib/ohai/plugins/linode.rb
+++ b/lib/ohai/plugins/linode.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Aaron Kalin (<akalin@martinisoftware.com>)
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/linux/block_device.rb b/lib/ohai/plugins/linux/block_device.rb
index 419021ad..36905fc4 100644
--- a/lib/ohai/plugins/linux/block_device.rb
+++ b/lib/ohai/plugins/linux/block_device.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/linux/hostnamectl.rb b/lib/ohai/plugins/linux/hostnamectl.rb
index 10a7ec99..fb718e98 100644
--- a/lib/ohai/plugins/linux/hostnamectl.rb
+++ b/lib/ohai/plugins/linux/hostnamectl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Davide Cavalca (<dcavalca@fb.com>)
# Copyright:: Copyright (c) 2016 Facebook
diff --git a/lib/ohai/plugins/linux/interrupts.rb b/lib/ohai/plugins/linux/interrupts.rb
index cd5f4272..79023339 100644
--- a/lib/ohai/plugins/linux/interrupts.rb
+++ b/lib/ohai/plugins/linux/interrupts.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Davide Cavalca <dcavalca@fb.com>
# Copyright:: Copyright (c) 2020 Facebook
diff --git a/lib/ohai/plugins/linux/ipc.rb b/lib/ohai/plugins/linux/ipc.rb
index 552ddc8f..a11b50ad 100644
--- a/lib/ohai/plugins/linux/ipc.rb
+++ b/lib/ohai/plugins/linux/ipc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Jay Vana <jsvana@fb.com>
# Author:: Davide Cavalca <dcavalca@fb.com>
diff --git a/lib/ohai/plugins/linux/lsb.rb b/lib/ohai/plugins/linux/lsb.rb
index 382d1534..0f3497b7 100644
--- a/lib/ohai/plugins/linux/lsb.rb
+++ b/lib/ohai/plugins/linux/lsb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/linux/lspci.rb b/lib/ohai/plugins/linux/lspci.rb
index 4d51a7d0..08b2a6d9 100644
--- a/lib/ohai/plugins/linux/lspci.rb
+++ b/lib/ohai/plugins/linux/lspci.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Joerg Herzinger <joerg.herzinger@oiml.at>
# Author:: Phil Dibowitz <phil@ipom.com>
diff --git a/lib/ohai/plugins/linux/machineid.rb b/lib/ohai/plugins/linux/machineid.rb
index c87a15f0..1877afb9 100644
--- a/lib/ohai/plugins/linux/machineid.rb
+++ b/lib/ohai/plugins/linux/machineid.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Davide Cavalca (<dcavalca@fb.com>)
# Copyright:: Copyright (c) 2016 Facebook
diff --git a/lib/ohai/plugins/linux/mdadm.rb b/lib/ohai/plugins/linux/mdadm.rb
index b33b4b0d..f7bfc528 100644
--- a/lib/ohai/plugins/linux/mdadm.rb
+++ b/lib/ohai/plugins/linux/mdadm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Smith <tsmith@limelight.com>
# Author:: Phil Dibowitz <phild@ipomc.com>
diff --git a/lib/ohai/plugins/linux/memory.rb b/lib/ohai/plugins/linux/memory.rb
index 328cb49f..f49df32d 100644
--- a/lib/ohai/plugins/linux/memory.rb
+++ b/lib/ohai/plugins/linux/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb
index 03fbffa4..874114c8 100644
--- a/lib/ohai/plugins/linux/network.rb
+++ b/lib/ohai/plugins/linux/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Chris Read <chris.read@gmail.com>
diff --git a/lib/ohai/plugins/linux/platform.rb b/lib/ohai/plugins/linux/platform.rb
index 31c4d75c..f9a73829 100644
--- a/lib/ohai/plugins/linux/platform.rb
+++ b/lib/ohai/plugins/linux/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/linux/selinux.rb b/lib/ohai/plugins/linux/selinux.rb
index 996ce78e..25115df8 100644
--- a/lib/ohai/plugins/linux/selinux.rb
+++ b/lib/ohai/plugins/linux/selinux.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Davide Cavalca <dcavalca@fb.com>
# Copyright:: Copyright (c) 2020 Facebook
diff --git a/lib/ohai/plugins/linux/sessions.rb b/lib/ohai/plugins/linux/sessions.rb
index bc503f85..96295ddb 100644
--- a/lib/ohai/plugins/linux/sessions.rb
+++ b/lib/ohai/plugins/linux/sessions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Davide Cavalca <dcavalca@fb.com>
# Copyright:: Copyright (c) 2016 Facebook
diff --git a/lib/ohai/plugins/linux/sysctl.rb b/lib/ohai/plugins/linux/sysctl.rb
index 2d621183..1ea6f5fd 100644
--- a/lib/ohai/plugins/linux/sysctl.rb
+++ b/lib/ohai/plugins/linux/sysctl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Joshua Miller <joshmiller@fb.com>
# Copyright:: Copyright (c) 2019 Facebook
diff --git a/lib/ohai/plugins/linux/systemd_paths.rb b/lib/ohai/plugins/linux/systemd_paths.rb
index 31451e46..37c41296 100644
--- a/lib/ohai/plugins/linux/systemd_paths.rb
+++ b/lib/ohai/plugins/linux/systemd_paths.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Davide Cavalca <dcavalca@fb.com>
# Copyright:: Copyright (c) 2017 Facebook
diff --git a/lib/ohai/plugins/linux/virtualization.rb b/lib/ohai/plugins/linux/virtualization.rb
index c9e69303..7d748571 100644
--- a/lib/ohai/plugins/linux/virtualization.rb
+++ b/lib/ohai/plugins/linux/virtualization.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Thom May (<thom@clearairturbulence.org>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/netbsd/memory.rb b/lib/ohai/plugins/netbsd/memory.rb
index 65cc8699..7583ed42 100644
--- a/lib/ohai/plugins/netbsd/memory.rb
+++ b/lib/ohai/plugins/netbsd/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/netbsd/network.rb b/lib/ohai/plugins/netbsd/network.rb
index ccd3ea8d..5e970058 100644
--- a/lib/ohai/plugins/netbsd/network.rb
+++ b/lib/ohai/plugins/netbsd/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/netbsd/platform.rb b/lib/ohai/plugins/netbsd/platform.rb
index 81f4f660..88ee102d 100644
--- a/lib/ohai/plugins/netbsd/platform.rb
+++ b/lib/ohai/plugins/netbsd/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/network.rb b/lib/ohai/plugins/network.rb
index e07adc00..be8f26f3 100644
--- a/lib/ohai/plugins/network.rb
+++ b/lib/ohai/plugins/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/ohai.rb b/lib/ohai/plugins/ohai.rb
index 3b6ed737..12724318 100644
--- a/lib/ohai/plugins/ohai.rb
+++ b/lib/ohai/plugins/ohai.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tollef Fog Heen <tfheen@err.no>
# Copyright:: Copyright (c) 2010 Tollef Fog Heen
diff --git a/lib/ohai/plugins/ohai_time.rb b/lib/ohai/plugins/ohai_time.rb
index 11069660..6347f15d 100644
--- a/lib/ohai/plugins/ohai_time.rb
+++ b/lib/ohai/plugins/ohai_time.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/openbsd/memory.rb b/lib/ohai/plugins/openbsd/memory.rb
index ab7de696..95694270 100644
--- a/lib/ohai/plugins/openbsd/memory.rb
+++ b/lib/ohai/plugins/openbsd/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/openbsd/network.rb b/lib/ohai/plugins/openbsd/network.rb
index 083d187e..6a2fbce9 100644
--- a/lib/ohai/plugins/openbsd/network.rb
+++ b/lib/ohai/plugins/openbsd/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/openbsd/platform.rb b/lib/ohai/plugins/openbsd/platform.rb
index 3d43e57e..b457ac35 100644
--- a/lib/ohai/plugins/openbsd/platform.rb
+++ b/lib/ohai/plugins/openbsd/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan (btm@loftninjas.org)
# Copyright:: Copyright (c) 2009 Bryan McLellan
diff --git a/lib/ohai/plugins/openstack.rb b/lib/ohai/plugins/openstack.rb
index d1b7dfa5..1c1f7abc 100644
--- a/lib/ohai/plugins/openstack.rb
+++ b/lib/ohai/plugins/openstack.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Matt Ray (<matt@chef.io>)
# Author:: Tim Smith (<tsmith@chef.io>)
diff --git a/lib/ohai/plugins/os.rb b/lib/ohai/plugins/os.rb
index 9159fa70..71b21c4f 100644
--- a/lib/ohai/plugins/os.rb
+++ b/lib/ohai/plugins/os.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Isa Farnik (<isa@chef.io>)
diff --git a/lib/ohai/plugins/packages.rb b/lib/ohai/plugins/packages.rb
index 9b7da66e..7ab0e0aa 100644
--- a/lib/ohai/plugins/packages.rb
+++ b/lib/ohai/plugins/packages.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
# Author:: "Christian Höltje" <choltje@us.ibm.com>
# Author:: "Christopher M. Luciano" <cmlucian@us.ibm.com>
# Author:: Shahul Khajamohideen (<skhajamohid1@bloomberg.net>)
diff --git a/lib/ohai/plugins/passwd.rb b/lib/ohai/plugins/passwd.rb
index 781aba94..a2e33632 100644
--- a/lib/ohai/plugins/passwd.rb
+++ b/lib/ohai/plugins/passwd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
Ohai.plugin(:Passwd) do
provides "etc", "current_user"
diff --git a/lib/ohai/plugins/platform.rb b/lib/ohai/plugins/platform.rb
index cc4967c8..0c8d63de 100644
--- a/lib/ohai/plugins/platform.rb
+++ b/lib/ohai/plugins/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/ps.rb b/lib/ohai/plugins/ps.rb
index 734262ae..7c5ffc8f 100644
--- a/lib/ohai/plugins/ps.rb
+++ b/lib/ohai/plugins/ps.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Bryan McLellan (<btm@loftninjas.org>)
diff --git a/lib/ohai/plugins/rackspace.rb b/lib/ohai/plugins/rackspace.rb
index 5576ba60..83603f86 100644
--- a/lib/ohai/plugins/rackspace.rb
+++ b/lib/ohai/plugins/rackspace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Cary Penniman (<cary@rightscale.com>)
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/root_group.rb b/lib/ohai/plugins/root_group.rb
index 28dba9bb..34f677f6 100644
--- a/lib/ohai/plugins/root_group.rb
+++ b/lib/ohai/plugins/root_group.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Joseph Anthony Pasquale Holsten (<joseph@josephholsten.com>)
# Copyright:: Copyright (c) 2013 Joseph Anthony Pasquale Holsten
diff --git a/lib/ohai/plugins/scala.rb b/lib/ohai/plugins/scala.rb
index 4bfb9153..c3965a12 100644
--- a/lib/ohai/plugins/scala.rb
+++ b/lib/ohai/plugins/scala.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
# Author:: Christopher M Luciano (<cmlucian@us.ibm.com>)
# © Copyright IBM Corporation 2015.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/scaleway.rb b/lib/ohai/plugins/scaleway.rb
index efee560c..d6d43444 100644
--- a/lib/ohai/plugins/scaleway.rb
+++ b/lib/ohai/plugins/scaleway.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Jonathan Amiez (<jonathan.amiez@gmail.com>)
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/scsi.rb b/lib/ohai/plugins/scsi.rb
index 412acecb..7a554adc 100644
--- a/lib/ohai/plugins/scsi.rb
+++ b/lib/ohai/plugins/scsi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Phil Dibowitz <phil@ipom.com>
# Copyright:: Copyright (c) 2018 Facebook, Inc.
diff --git a/lib/ohai/plugins/shells.rb b/lib/ohai/plugins/shells.rb
index 06d20e6a..92eead7d 100644
--- a/lib/ohai/plugins/shells.rb
+++ b/lib/ohai/plugins/shells.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Smith (<tsmith@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/softlayer.rb b/lib/ohai/plugins/softlayer.rb
index fd48e9fa..18a373c6 100644
--- a/lib/ohai/plugins/softlayer.rb
+++ b/lib/ohai/plugins/softlayer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Alexey Karpik <alexey.karpik@rightscale.com>
# Author:: Peter Schroeter <peter.schroeter@rightscale.com>
diff --git a/lib/ohai/plugins/solaris2/dmi.rb b/lib/ohai/plugins/solaris2/dmi.rb
index 9e4b6343..d4cf0d67 100644
--- a/lib/ohai/plugins/solaris2/dmi.rb
+++ b/lib/ohai/plugins/solaris2/dmi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Kurt Yoder (ktyopscode@yoderhome.com)
# Copyright:: Copyright (c) 2010 Kurt Yoder
diff --git a/lib/ohai/plugins/solaris2/memory.rb b/lib/ohai/plugins/solaris2/memory.rb
index c2933b0f..04e8dd17 100644
--- a/lib/ohai/plugins/solaris2/memory.rb
+++ b/lib/ohai/plugins/solaris2/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# License:: Apache License, Version 2.0
#
diff --git a/lib/ohai/plugins/solaris2/network.rb b/lib/ohai/plugins/solaris2/network.rb
index fd59615f..754a53e7 100644
--- a/lib/ohai/plugins/solaris2/network.rb
+++ b/lib/ohai/plugins/solaris2/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Benjamin Black (<nostromo@gmail.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/solaris2/platform.rb b/lib/ohai/plugins/solaris2/platform.rb
index e2ace48d..1a9d0ac5 100644
--- a/lib/ohai/plugins/solaris2/platform.rb
+++ b/lib/ohai/plugins/solaris2/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Benjamin Black (<nostromo@gmail.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/solaris2/virtualization.rb b/lib/ohai/plugins/solaris2/virtualization.rb
index 3f82f0a0..6a7fc2ec 100644
--- a/lib/ohai/plugins/solaris2/virtualization.rb
+++ b/lib/ohai/plugins/solaris2/virtualization.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Sean Walbran (<seanwalbran@gmail.com>)
# Author:: Kurt Yoder (<ktyopscode@yoderhome.com>)
diff --git a/lib/ohai/plugins/ssh_host_key.rb b/lib/ohai/plugins/ssh_host_key.rb
index 0d31f95c..12466071 100644
--- a/lib/ohai/plugins/ssh_host_key.rb
+++ b/lib/ohai/plugins/ssh_host_key.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Bryan McLellan <btm@chef.io>
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/sysconf.rb b/lib/ohai/plugins/sysconf.rb
index c2deee96..dccdb630 100644
--- a/lib/ohai/plugins/sysconf.rb
+++ b/lib/ohai/plugins/sysconf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Davide Cavalca <dcavalca@fb.com>
# Copyright:: Copyright (c) 2016 Facebook
diff --git a/lib/ohai/plugins/timezone.rb b/lib/ohai/plugins/timezone.rb
index 26a63e42..1d542e43 100644
--- a/lib/ohai/plugins/timezone.rb
+++ b/lib/ohai/plugins/timezone.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: John Bellone (<jbellone@bloomberg.net>)
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/train.rb b/lib/ohai/plugins/train.rb
index cd0c89bd..6d48c4cc 100644
--- a/lib/ohai/plugins/train.rb
+++ b/lib/ohai/plugins/train.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/uptime.rb b/lib/ohai/plugins/uptime.rb
index fc24d676..708feadf 100644
--- a/lib/ohai/plugins/uptime.rb
+++ b/lib/ohai/plugins/uptime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Bryan McLellan (<btm@loftninjas.org>)
diff --git a/lib/ohai/plugins/virtualbox.rb b/lib/ohai/plugins/virtualbox.rb
index 70592362..60ec0213 100644
--- a/lib/ohai/plugins/virtualbox.rb
+++ b/lib/ohai/plugins/virtualbox.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Tim Smith <tsmith@chef.io>
# Author:: Joshua Colson <joshua.colson@gmail.com>
diff --git a/lib/ohai/plugins/vmware.rb b/lib/ohai/plugins/vmware.rb
index edcae742..cce39e3e 100644
--- a/lib/ohai/plugins/vmware.rb
+++ b/lib/ohai/plugins/vmware.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: "Dan Robinson" <drobinson@chef.io>
# Author:: "Christopher M. Luciano" <cmlucian@us.ibm.com>
diff --git a/lib/ohai/plugins/windows/dmi.rb b/lib/ohai/plugins/windows/dmi.rb
index cf799404..4665dd77 100644
--- a/lib/ohai/plugins/windows/dmi.rb
+++ b/lib/ohai/plugins/windows/dmi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Pete Higgins (pete@peterhiggins.org)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/windows/drivers.rb b/lib/ohai/plugins/windows/drivers.rb
index f0985e30..5a3d6c4b 100644
--- a/lib/ohai/plugins/windows/drivers.rb
+++ b/lib/ohai/plugins/windows/drivers.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/plugins/windows/memory.rb b/lib/ohai/plugins/windows/memory.rb
index b8bd84a1..b8b682dd 100644
--- a/lib/ohai/plugins/windows/memory.rb
+++ b/lib/ohai/plugins/windows/memory.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# License:: Apache License, Version 2.0
#
diff --git a/lib/ohai/plugins/windows/network.rb b/lib/ohai/plugins/windows/network.rb
index f2a9eb32..77c1be8c 100644
--- a/lib/ohai/plugins/windows/network.rb
+++ b/lib/ohai/plugins/windows/network.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: James Gartrell (<jgartrel@gmail.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/windows/platform.rb b/lib/ohai/plugins/windows/platform.rb
index 220c9225..727c3fd7 100644
--- a/lib/ohai/plugins/windows/platform.rb
+++ b/lib/ohai/plugins/windows/platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: James Gartrell (<jgartrel@gmail.com>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/windows/system_enclosure.rb b/lib/ohai/plugins/windows/system_enclosure.rb
index d6c1bbae..02d01e72 100644
--- a/lib/ohai/plugins/windows/system_enclosure.rb
+++ b/lib/ohai/plugins/windows/system_enclosure.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Stuart Preston (<stuart@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/plugins/windows/virtualization.rb b/lib/ohai/plugins/windows/virtualization.rb
index 9f539588..5820d973 100644
--- a/lib/ohai/plugins/windows/virtualization.rb
+++ b/lib/ohai/plugins/windows/virtualization.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Pavel Yudin (<pyudin@parallels.com>)
# Author:: Tim Smith (<tsmith@chef.io>)
diff --git a/lib/ohai/plugins/zpools.rb b/lib/ohai/plugins/zpools.rb
index 033a0dbc..bd6ced99 100644
--- a/lib/ohai/plugins/zpools.rb
+++ b/lib/ohai/plugins/zpools.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Jason J. W. Williams (williamsjj@digitar.com)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/provides_map.rb b/lib/ohai/provides_map.rb
index 5a70163a..2c4a732a 100644
--- a/lib/ohai/provides_map.rb
+++ b/lib/ohai/provides_map.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Daniel DeLeo (<dan@chef.io>)
diff --git a/lib/ohai/runner.rb b/lib/ohai/runner.rb
index 72808d2e..de478895 100644
--- a/lib/ohai/runner.rb
+++ b/lib/ohai/runner.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Claire McQuin (<claire@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb
index e78e6bb4..ded1447e 100644
--- a/lib/ohai/system.rb
+++ b/lib/ohai/system.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/train_transport.rb b/lib/ohai/train_transport.rb
index 366132ac..8bdfe694 100644
--- a/lib/ohai/train_transport.rb
+++ b/lib/ohai/train_transport.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
# Author:: Bryan McLellan <btm@loftninjas.org>
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/util/file_helper.rb b/lib/ohai/util/file_helper.rb
index 019d39d7..10095316 100644
--- a/lib/ohai/util/file_helper.rb
+++ b/lib/ohai/util/file_helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
$stderr.puts "WARN: Ohai::Util::FileHelper is deprecated, please use Ohai::Mixin::Which or remove if the reference is unnecessary"
require_relative "../mixin/which"
module Ohai::Util
diff --git a/lib/ohai/util/ip_helper.rb b/lib/ohai/util/ip_helper.rb
index 8b56eecf..86617935 100644
--- a/lib/ohai/util/ip_helper.rb
+++ b/lib/ohai/util/ip_helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Stafford Brunk (<stafford.brunk@gmail.com>)
# License:: Apache License, Version 2.0
diff --git a/lib/ohai/util/win32.rb b/lib/ohai/util/win32.rb
index 2d18f543..6adcd3ca 100644
--- a/lib/ohai/util/win32.rb
+++ b/lib/ohai/util/win32.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
# Author:: Adam Edwards (<adamed@chef.io>)
#
# Copyright:: Copyright (c) Chef Software Inc.
diff --git a/lib/ohai/version.rb b/lib/ohai/version.rb
index 2364b1ae..4c57dc15 100644
--- a/lib/ohai/version.rb
+++ b/lib/ohai/version.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) Chef Software Inc.
@@ -18,5 +19,5 @@
module Ohai
OHAI_ROOT = File.expand_path(__dir__)
- VERSION = "16.7.8".freeze
+ VERSION = "16.7.8"
end
diff --git a/ohai.gemspec b/ohai.gemspec
index 95fc2ff8..854805db 100644
--- a/ohai.gemspec
+++ b/ohai.gemspec
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
$:.unshift File.expand_path("lib", __dir__)
require "ohai/version"
diff --git a/tasks/spellcheck.rb b/tasks/spellcheck.rb
index 076173fa..ee994283 100644
--- a/tasks/spellcheck.rb
+++ b/tasks/spellcheck.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
#
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0