diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2013-03-13 12:03:35 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 13:04:33 -0700 |
commit | 7052e7712a6b159626c2077f86e8be551e79bbd4 (patch) | |
tree | ef0cb7faba3afcce049d2f8a34076344811625c6 /lib/chef/cookbook_version.rb | |
parent | f554a1c0fbc1f308462d3d62544a0fd7ed7df6ec (diff) | |
download | chef-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/cookbook_version.rb')
-rw-r--r-- | lib/chef/cookbook_version.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb index 61917fc889..a70c892e1b 100644 --- a/lib/chef/cookbook_version.rb +++ b/lib/chef/cookbook_version.rb @@ -25,7 +25,7 @@ require 'chef/resource_definition_list' require 'chef/recipe' require 'chef/cookbook/file_vendor' require 'chef/cookbook/metadata' -require 'chef/version/cookbook' +require 'chef/version_class' class Chef @@ -669,9 +669,9 @@ class Chef def <=>(o) raise Chef::Exceptions::CookbookVersionNameMismatch if self.name != o.name # FIXME: can we change the interface to the Metadata class such - # that metadata.version returns a Chef::Version::Cookbook instance - # instead of a string? - Chef::Version.new(self.version) <=> Chef::Version::Cookbook.new(o.version) + # that metadata.version returns a Chef::Version instance instead + # of a string? + Chef::Version.new(self.version) <=> Chef::Version.new(o.version) end private |