diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-15 11:35:25 -0500 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-15 11:35:25 -0500 |
commit | 504161a341b7b2188359b793696333037ebf8404 (patch) | |
tree | 7498c60fd2ac4b9d44359f29f27834472154c81f /lib/chef/provider | |
parent | b086721ca70750277c407fd0cc573a08f076649f (diff) | |
parent | 2be8ab342b55a0be79f8836dd717b586e8ea0d5b (diff) | |
download | chef-504161a341b7b2188359b793696333037ebf8404.tar.gz |
Merge pull request #3360 from chef/jdm/resource-semantics
Add check_resource_semantics! lifecycle method to provider
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/package.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/provider/package.rb b/lib/chef/provider/package.rb index 6b429a400d..bdc96cd070 100644 --- a/lib/chef/provider/package.rb +++ b/lib/chef/provider/package.rb @@ -43,6 +43,12 @@ class Chef true end + def check_resource_semantics! + if new_resource.package_name.is_a?(Array) && new_resource.source != nil + raise Chef::Exceptions::InvalidResourceSpecification, "You may not specify both multipackage and source" + end + end + def load_current_resource end |