diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2013-03-04 15:05:54 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 13:04:33 -0700 |
commit | 38becdf97cdbd060027776a551aad333fbddcd5a (patch) | |
tree | 1e193e818ca257424f1ab849e3862662bb6fc27a /lib/chef/environment.rb | |
parent | 8c1e41b93b119855e2e723cf35f9ca72d06a76f4 (diff) | |
download | chef-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/environment.rb')
-rw-r--r-- | lib/chef/environment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/environment.rb b/lib/chef/environment.rb index 00cc253083..7439be0304 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' +require 'chef/version_constraint/cookbook' class Chef class Environment @@ -276,7 +276,7 @@ class Chef def self.validate_cookbook_version(version) begin - Chef::VersionConstraint.new version + Chef::VersionConstraint::Cookbook.new version true rescue ArgumentError false |