Skip to content

Commit

Permalink
Debugging now, adding puts statements
Browse files Browse the repository at this point in the history
Signed-off-by: John <[email protected]>
  • Loading branch information
johnmccrae committed Mar 21, 2024
1 parent 46d9507 commit 2da4d09
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/ohai/mixin/network_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
require "socket" unless defined?(Socket)
require "resolv" unless defined?(Resolv)

puts "[1] - I am in the network helper"
# puts "[1] - I am in the network helper"

if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
puts "OOh, just about to load the monkey-patch"
module Win32
puts "OOH, autoloading the Registry patch"
# puts "Here is the contents of the patch"
# puts File.expand_path("../../monkey_patches/win32/registry", __dir__)
# puts File.expand_path("../../monkey_patches/win32/registry", __FILE__)
text = File.read(File.expand_path("../../ohai/monkey_patches/win32/registry.rb", __dir__))
puts text
autoload :Registry, File.expand_path("../../ohai/monkey_patches/win32/registry.rb", __dir__)
puts "OOH, just finished autoloading the Registry patch"
end
end
# if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
# puts "OOh, just about to load the monkey-patch"
# module Win32
# puts "OOH, autoloading the Registry patch"
# # puts "Here is the contents of the patch"
# # puts File.expand_path("../../monkey_patches/win32/registry", __dir__)
# # puts File.expand_path("../../monkey_patches/win32/registry", __FILE__)
# text = File.read(File.expand_path("../../ohai/monkey_patches/win32/registry.rb", __dir__))
# puts text
# autoload :Registry, File.expand_path("../../ohai/monkey_patches/win32/registry.rb", __dir__)
# puts "OOH, just finished autoloading the Registry patch"
# end
# end

module Ohai
module Mixin
Expand Down

0 comments on commit 2da4d09

Please sign in to comment.