libraries/helpers.rb
# Checks against the current gerrit version
#
# @return [Boolean]
Checks against the current gerrit version
Checks against the current gerrit version
def gerrit_above?(version)
      require 'chef/version_constraint'
      actual_version_cleaned = node['gerrit']['version'].split('-')[0]
      Chef::VersionConstraint.new(">= #{version}").include?(actual_version_cleaned)
    end
def gerrit_above? ( version ) require 'chef/version_constraint' actual_version_cleaned = node [ 'gerrit' ] [ 'version' ] . split ( '-' ) [ 0 ] Chef :: VersionConstraint . new ( ">= #{version}" ) . include? ( actual_version_cleaned ) end
Checks against the current gerrit version
Checks against the current gerrit version
# remove the garbage (like -rc1 etc.) from version numbers
None
Boolean
version
<not_specific>