libraries/provider_hab_package.rb
def version_requirement_satisfied?(current_version, new_version)
          return false if new_version.nil? || current_version.nil?

          nv_parts = new_version.squeeze('/').split('/')

          if nv_parts.count < 2
            return current_version.squeeze('/').split('/')[0] == new_version.squeeze('/')
          else
            return current_version.squeeze('/') == new_resource.version.squeeze('/')
          end
        end
# This is used by the superclass Chef::Provider::Package
This is used by the superclass Chef::Provider::Package
This is used by the superclass Chef :: Provider :: Package
def version_requirement_satisfied?(current_version, new_version)
          return false if new_version.nil? || current_version.nil?
          nv_parts = new_version.squeeze('/').split('/')
          if nv_parts.count < 2
            return current_version.squeeze('/').split('/')[0] == new_version.squeeze('/')
          else
            return current_version.squeeze('/') == new_resource.version.squeeze('/')
          end
        end
def version_requirement_satisfied? ( current_version , new_version ) return false if new_version . nil? || current_version . nil? nv_parts = new_version . squeeze ( '/' ) . split ( '/' ) if nv_parts . count < 2 return current_version . squeeze ( '/' ) . split ( '/' ) [ 0 ] == new_version . squeeze ( '/' ) else return current_version . squeeze ( '/' ) == new_resource . version . squeeze ( '/' ) end end
This is used by the superclass Chef::Provider::Package
This is used by the superclass Chef :: Provider :: Package
current_version
new_version