diff options
Diffstat (limited to 'lib/chef/resource/windows_feature_dism.rb')
-rw-r--r-- | lib/chef/resource/windows_feature_dism.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/chef/resource/windows_feature_dism.rb b/lib/chef/resource/windows_feature_dism.rb index c9e2f355dc..a2d91eaede 100644 --- a/lib/chef/resource/windows_feature_dism.rb +++ b/lib/chef/resource/windows_feature_dism.rb @@ -65,9 +65,7 @@ class Chef x.map(&:downcase) end - action :install do - description "Install a Windows role/feature using DISM" - + action :install, description: "Install a Windows role/feature using DISM." do reload_cached_dism_data unless node["dism_features_cache"] fail_if_unavailable # fail if the features don't exist @@ -91,9 +89,7 @@ class Chef end end - action :remove do - description "Remove a Windows role/feature using DISM" - + action :remove, description: "Remove a Windows role or feature using DISM." do reload_cached_dism_data unless node["dism_features_cache"] logger.trace("Windows features needing removal: #{features_to_remove.empty? ? "none" : features_to_remove.join(",")}") @@ -108,9 +104,7 @@ class Chef end end - action :delete do - description "Remove a Windows role/feature from the image using DISM" - + action :delete, description: "Remove a Windows role or feature from the image using DISM." do reload_cached_dism_data unless node["dism_features_cache"] fail_if_unavailable # fail if the features don't exist |