summaryrefslogtreecommitdiff
path: root/lib/chef/resource/homebrew_cask.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/homebrew_cask.rb')
-rw-r--r--lib/chef/resource/homebrew_cask.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/homebrew_cask.rb b/lib/chef/resource/homebrew_cask.rb
index 626ae02a69..7c47fbbfcd 100644
--- a/lib/chef/resource/homebrew_cask.rb
+++ b/lib/chef/resource/homebrew_cask.rb
@@ -34,6 +34,7 @@ class Chef
property :cask_name, String,
description: "The name of the Homebrew cask, if it differs from the resource block name.",
regex: %r{^[\w/-]+$},
+ validation_message: "The provided Homebrew cask name is not valid. Cask names can contain alphanumeric characters, _, -, or / only!",
name_property: true
property :options, String,