diff options
Diffstat (limited to 'chef-utils/lib/chef-utils/version_string.rb')
-rw-r--r-- | chef-utils/lib/chef-utils/version_string.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chef-utils/lib/chef-utils/version_string.rb b/chef-utils/lib/chef-utils/version_string.rb index 5b3780e618..7a7096909f 100644 --- a/chef-utils/lib/chef-utils/version_string.rb +++ b/chef-utils/lib/chef-utils/version_string.rb @@ -139,5 +139,11 @@ module ChefUtils end end + # Back-compat API for chef-sugar. The other APIs are preferable. + # + # @api private + def satisfies?(*constraints) + Gem::Requirement.new(*constraints).satisfied_by?(@parsed_version) + end end end |