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/version_class.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/version_class.rb')
-rw-r--r-- | lib/chef/version_class.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef/version_class.rb b/lib/chef/version_class.rb index 25b393854b..01af6f1f55 100644 --- a/lib/chef/version_class.rb +++ b/lib/chef/version_class.rb @@ -60,11 +60,9 @@ class Chef [ $1.to_i, $2.to_i, $3.to_i ] when /^(\d+)\.(\d+)$/ [ $1.to_i, $2.to_i, 0 ] - when /^(\d+)$/ - [ $1.to_i, 0, 0 ] else - msg = "'#{str.to_s}' does not match 'x.y.z', 'x.y' or 'x'" - raise Chef::Exceptions::InvalidVersion.new( msg ) + msg = "'#{str.to_s}' does not match 'x.y.z' or 'x.y'" + raise Chef::Exceptions::InvalidCookbookVersion.new( msg ) end end |