summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKartik Null Cating-Subramanian <ksubramanian@chef.io>2015-08-07 13:31:51 -0400
committerKartik Null Cating-Subramanian <ksubramanian@chef.io>2015-08-25 14:06:56 -0400
commit3ffecf0a75e0c0bfcb5e878af1f05bb360dd649e (patch)
tree7345558f36ff7dafe58f53a43c23ec87b378f4df
parent8a2ac509f9c4d262f2375ec6d3d3494eed730e0a (diff)
downloadchef-3ffecf0a75e0c0bfcb5e878af1f05bb360dd649e.tar.gz
Downcase module_path_name by default
-rw-r--r--chef-config/lib/chef-config/package_task.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/package_task.rb b/chef-config/lib/chef-config/package_task.rb
index 1073747a40..ab9bdaf0f5 100644
--- a/chef-config/lib/chef-config/package_task.rb
+++ b/chef-config/lib/chef-config/package_task.rb
@@ -40,10 +40,11 @@ module ChefConfig
# This is the module name as it appears on the path "lib/module/".
# e.g. for module_name "ChefDK", you'd want module_path_name to be "chef-dk".
+ # The default is module_name but lower-cased.
attr_writer :module_path_name
def module_path_name
- @module_path_name || module_name
+ @module_path_name || module_name.downcase
end
# Path to a VERSION file with a single string that contains the package version.