summaryrefslogtreecommitdiff
path: root/lib/chef/environment.rb
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier@onddo.com>2013-03-13 12:03:35 +0100
committerBryan McLellan <btm@opscode.com>2013-04-11 13:04:33 -0700
commit7052e7712a6b159626c2077f86e8be551e79bbd4 (patch)
treeef0cb7faba3afcce049d2f8a34076344811625c6 /lib/chef/environment.rb
parentf554a1c0fbc1f308462d3d62544a0fd7ed7df6ec (diff)
downloadchef-7052e7712a6b159626c2077f86e8be551e79bbd4.tar.gz
[CHEF-3919] Removed Chef::Version::Cookbook code and replaced by a Chef::Version::Platform class, reverting Chef::Version class changes
Diffstat (limited to 'lib/chef/environment.rb')
-rw-r--r--lib/chef/environment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/environment.rb b/lib/chef/environment.rb
index 7439be0304..00cc253083 100644
--- a/lib/chef/environment.rb
+++ b/lib/chef/environment.rb
@@ -22,7 +22,7 @@ require 'chef/config'
require 'chef/mash'
require 'chef/mixin/params_validate'
require 'chef/mixin/from_file'
-require 'chef/version_constraint/cookbook'
+require 'chef/version_constraint'
class Chef
class Environment
@@ -276,7 +276,7 @@ class Chef
def self.validate_cookbook_version(version)
begin
- Chef::VersionConstraint::Cookbook.new version
+ Chef::VersionConstraint.new version
true
rescue ArgumentError
false