summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Burkholder <peterb@getchef.com>2015-02-25 10:01:05 -0500
committerPeter Burkholder <peterb@getchef.com>2015-02-25 10:01:05 -0500
commitfced6d9e3a0d5806c16d9e1db54cf65199535d40 (patch)
tree6aae9ce9debe9ee7bd57ee6778d8a93629316394
parenta462a5237230d36ab1d889ccf70c579f6adc2972 (diff)
downloadchef-fced6d9e3a0d5806c16d9e1db54cf65199535d40.tar.gz
Clarify warning
-rw-r--r--lib/chef/provider/package/rubygems.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb
index ff1e346cd1..4b37519d6b 100644
--- a/lib/chef/provider/package/rubygems.rb
+++ b/lib/chef/provider/package/rubygems.rb
@@ -380,8 +380,10 @@ class Chef
# Opscode Omnibus - The ruby that ships inside omnibus is only used for Chef
# Default to installing somewhere more functional
if new_resource.options && new_resource.options.kind_of?(Hash)
- msg = "options should be a string instead of a hash\n"
- msg << "in #{new_resource} from #{new_resource.source_line}"
+ msg = "gem_package is for use by the system install of Ruby\n"
+ msg << "but the Chef Omnibus Ruby has been detected with an options\n"
+ msg << "hash. Use gem_binary attribute or pass a string of options\n"
+ msg << "at #{new_resource} from #{new_resource.source_line}"
raise ArgumentError, msg
end
gem_location = find_gem_by_path