Sha256: 00ab7a8b402c3bba69b6b7c60784205176224cdf34e47fbf8bda479282861354

Contents?: true

Size: 466 Bytes

Versions: 14

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

# shamelessly borrowed from rubocop-rails. Thanks!

module RuboCop
  module Cop
    # Common functionality for checking target chef version.
    module TargetChefVersion
      def minimum_target_chef_version(version)
        @minimum_target_chef_version = version
      end

      def support_target_chef_version?(version)
        Gem::Version.new(@minimum_target_chef_version) <= Gem::Version.new(version)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cookstyle-5.23.0 lib/rubocop/cop/target_chef_version.rb
cookstyle-6.3.4 lib/rubocop/cop/target_chef_version.rb
cookstyle-6.2.9 lib/rubocop/cop/target_chef_version.rb
cookstyle-6.2.5 lib/rubocop/cop/target_chef_version.rb
cookstyle-6.1.6 lib/rubocop/cop/target_chef_version.rb
cookstyle-6.0.19 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.22.6 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.21.9 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.20.0 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.19.9 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.18.4 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.17.4 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.16.11 lib/rubocop/cop/target_chef_version.rb
cookstyle-5.16.10 lib/rubocop/cop/target_chef_version.rb