diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-24 22:36:50 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-24 22:36:50 -0700 |
commit | a8abf9260b74ab6f316a717380eb727aaa758184 (patch) | |
tree | c9e05d4208926478e56d1b19ed3e399b91edfdc6 | |
parent | 3f55e30b887a7f953b512c830680b36ca9b970b6 (diff) | |
download | ohai-a8abf9260b74ab6f316a717380eb727aaa758184.tar.gz |
code review
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/ohai/mixin/chef_utils_wiring.rb | 4 | ||||
-rw-r--r-- | lib/ohai/mixin/command.rb | 1 | ||||
-rw-r--r-- | lib/ohai/mixin/which.rb | 2 | ||||
-rw-r--r-- | lib/ohai/util/file_helper.rb | 1 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/ohai/mixin/chef_utils_wiring.rb b/lib/ohai/mixin/chef_utils_wiring.rb index 527ac497..3ca61c25 100644 --- a/lib/ohai/mixin/chef_utils_wiring.rb +++ b/lib/ohai/mixin/chef_utils_wiring.rb @@ -15,9 +15,7 @@ # limitations under the License. # -# require_relative "../log" -# require_relative "../config" -# require_relative "../chef_class" +require_relative "../config" module Ohai module Mixin diff --git a/lib/ohai/mixin/command.rb b/lib/ohai/mixin/command.rb index f335db93..030844a7 100644 --- a/lib/ohai/mixin/command.rb +++ b/lib/ohai/mixin/command.rb @@ -1,2 +1,3 @@ +$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/which.rb b/lib/ohai/mixin/which.rb index 32c83f0f..b21ee640 100644 --- a/lib/ohai/mixin/which.rb +++ b/lib/ohai/mixin/which.rb @@ -1,4 +1,4 @@ -#-- +# # 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 6a52be15..019d39d7 100644 --- a/lib/ohai/util/file_helper.rb +++ b/lib/ohai/util/file_helper.rb @@ -1,3 +1,4 @@ +$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 FileHelper = Ohai::Mixin::Which |