require 'chef/resource/freebsd_package'

class Chef
  class Resource
    class FreebsdPackage < Chef::Resource::Package
      #
      # Chef decided it was a good idea to just shellout inside of a resource.
      # Not only is that a horrible fucking idea, but I got flak when I asked
      # to change it. So we are just going to monkey patch the fucking thing so
      # it does not shell out.
      #
      # @return [false]
      #
      def supports_pkgng?
        false
      end
    end
  end
end

require 'chef/resource/freebsd_package'

class Chef
  class Resource
    class FreebsdPackage < Chef::Resource::Package
      #
      # Chef decided it was a good idea to just shellout inside of a resource.
      # Not only is that a horrible fucking idea, but I got flak when I asked
      # to change it. So we are just going to monkey patch the fucking thing so
      # it does not shell out.
      #
      # @return [false]
      #
      def supports_pkgng?
        true
      end
    end
  end
end

Change the freebsd monkeypatch to assume pkgng
Change the freebsd monkeypatch to assume pkgng

Without this FreeBSD package will start to trigger the deprecation
warnings and we'll get errors on that.

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
