diff options
author | Richard Manyanza <rm@dsc.co.tz> | 2013-11-10 20:20:58 +0300 |
---|---|---|
committer | Richard Manyanza <rm@dsc.co.tz> | 2014-03-11 11:03:45 +0300 |
commit | ddc3d9afe6a608af0b14bad38b891c6d8a504cae (patch) | |
tree | 8279d4153f6ecf56dc594d07319d9334f02b1be4 /lib/chef/version | |
parent | 549e386a6fee8b23793df34b8dfd2979e19ea7fb (diff) | |
download | chef-ddc3d9afe6a608af0b14bad38b891c6d8a504cae.tar.gz |
Add support for FreeBSD next generation package manager
Diffstat (limited to 'lib/chef/version')
-rw-r--r-- | lib/chef/version/platform.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/version/platform.rb b/lib/chef/version/platform.rb index 2921341cd2..81e7614646 100644 --- a/lib/chef/version/platform.rb +++ b/lib/chef/version/platform.rb @@ -31,6 +31,8 @@ class Chef [ $1.to_i, $2.to_i, 0 ] when /^(\d+)$/ [ $1.to_i, 0, 0 ] + when /^(\d+).(\d+)-[a-z]+\d?(-p(\d+))?$/i # Match FreeBSD + [ $1.to_i, $2.to_i, ($4 ? $4.to_i : 0)] else msg = "'#{str.to_s}' does not match 'x.y.z', 'x.y' or 'x'" raise Chef::Exceptions::InvalidPlatformVersion.new( msg ) |