Skip to content

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld committed Jan 20, 2025
1 parent e56ed5d commit 4ecdb9c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
# limitations under the License.
#

# class HomebrewUserWrapper
# require Chef::VERSION >= Chef::Version.new('18.6.2') ? 'chef/mixin/homebrew' : 'chef/mixin/homebrew_user'
# include Chef::VERSION >= Chef::Version.new('18.6.2') ? Chef::Mixin::Homebrew : Chef::Mixin::HomebrewUser
# include Chef::Mixin::Which
# end

module HomebrewHelper
require Chef::VERSION >= Chef::Version.new('18.6.2') ? 'chef/mixin/homebrew' : 'chef/mixin/homebrew_user'
include Chef::VERSION >= Chef::Version.new('18.6.2') ? Chef::Mixin::Homebrew : Chef::Mixin::HomebrewUser
class HomebrewUserWrapper
require 'chef/mixin/homebrew'
include Chef::Mixin::Homebrew
# require Chef::VERSION >= Chef::Version.new('18.6.2') ? 'chef/mixin/homebrew' : 'chef/mixin/homebrew_user'
# include Chef::VERSION >= Chef::Version.new('18.6.2') ? Chef::Mixin::Homebrew : Chef::Mixin::HomebrewUser
include Chef::Mixin::Which
end

module Homebrew
extend self

require 'mixlib/shellout'
include Chef::Mixin::ShellOut
Expand Down Expand Up @@ -93,8 +93,8 @@ def sudo_user
def current_user
ENV['USER']
end
end # unless defined?(Homebrew)
end unless defined?(Homebrew)

class HomebrewWrapper
include HomebrewHelper
include Homebrew
end

0 comments on commit 4ecdb9c

Please sign in to comment.