summaryrefslogtreecommitdiff
path: root/lib/chef/platform.rb
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier@onddo.com>2013-03-04 15:05:54 +0100
committerBryan McLellan <btm@opscode.com>2013-04-11 13:04:33 -0700
commit38becdf97cdbd060027776a551aad333fbddcd5a (patch)
tree1e193e818ca257424f1ab849e3862662bb6fc27a /lib/chef/platform.rb
parent8c1e41b93b119855e2e723cf35f9ca72d06a76f4 (diff)
downloadchef-38becdf97cdbd060027776a551aad333fbddcd5a.tar.gz
[CHEF-3919] cookbook version specific code factored out from Chef::Version, new classes created: Chef::Version::Cookbook and Chef::VersionConstraint::Cookbook
Diffstat (limited to 'lib/chef/platform.rb')
-rw-r--r--lib/chef/platform.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/platform.rb b/lib/chef/platform.rb
index 4c407673e2..bca003d35a 100644
--- a/lib/chef/platform.rb
+++ b/lib/chef/platform.rb
@@ -345,7 +345,7 @@ class Chef
end
platform_versions.each do |platform_version, provider|
begin
- version_constraint = Chef::VersionConstraint.new(platform_version)
+ version_constraint = Chef::VersionConstraint::Cookbook.new(platform_version)
if version_constraint.include?(version)
Chef::Log.debug("Platform #{name.to_s} version #{version} found")
provider_map.merge!(provider)