diff options
| author | Lamont Granquist <lamont@chef.io> | 2020-08-04 12:14:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-04 12:14:55 -0700 |
| commit | 3c0e4bc2fbf97f433ec4f46c938c1bcbcb135450 (patch) | |
| tree | cc80ec8d2cbaf967c86963c832afecf4734288d2 /lib/chef/resource/windows_share.rb | |
| parent | 6149ebc6391ebe58ff297c9a2a17b129327df41c (diff) | |
| parent | b4d57ddf14d8dabebea50ff2dc3e64647fc32c25 (diff) | |
| download | chef-3c0e4bc2fbf97f433ec4f46c938c1bcbcb135450.tar.gz | |
Merge pull request #10260 from chef/lcg/windows-custom-resources-unified-mode
Convert windows custom resources to unified_mode
Diffstat (limited to 'lib/chef/resource/windows_share.rb')
| -rw-r--r-- | lib/chef/resource/windows_share.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/resource/windows_share.rb b/lib/chef/resource/windows_share.rb index d5626110dd..47bf6cfb19 100644 --- a/lib/chef/resource/windows_share.rb +++ b/lib/chef/resource/windows_share.rb @@ -26,6 +26,8 @@ require_relative "../util/path_helper" class Chef class Resource class WindowsShare < Chef::Resource + unified_mode true + provides :windows_share description "Use the **windows_share** resource to create, modify and remove Windows shares." @@ -231,6 +233,8 @@ class Chef end action_class do + private + def different_path? return false if current_resource.nil? # going from nil to something isn't different for our concerns return false if current_resource.path == Chef::Util::PathHelper.cleanpath(new_resource.path) |
