Last active
August 29, 2015 13:57
-
-
Save yzl/9699474 to your computer and use it in GitHub Desktop.
Overriding one of chef's providers in an HWP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libraries/platform_provider_mapping.rb: | |
require 'chef/platform' | |
require_relative 'osx_group' | |
Chef::Platform.set( | |
platform: :mac_os_x, | |
resource: :group, | |
provider: Chef::Provider::Group::Osx, | |
) | |
libraries/osx_group.rb: | |
class Chef | |
class Provider::Group::Osx < Provider::Group | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment