lib/poise_boiler/helpers/kitchen.rb
# The Chef version to use for Test Kitchen or nil for any version.
#
# @return [String, nil]
The Chef version to use for Test Kitchen or nil for any version.
The Chef version to use for Test Kitchen or nil for any version .
def chef_version
        @chef_version ||= ENV['CHEF_VERSION'] || if ENV['POISE_MASTER_BUILD']
          nil
        elsif ENV['SPEC_BLOCK_CI'] != 'true'
          require 'chef/version'
          Chef::VERSION.to_s
        end
      end
def chef_version @chef_version ||= ENV [ 'CHEF_VERSION' ] || if ENV [ 'POISE_MASTER_BUILD' ] nil elsif ENV [ 'SPEC_BLOCK_CI' ] != 'true' require 'chef/version' Chef :: VERSION . to_s end end
The Chef version to use for Test Kitchen or nil for any version.
The Chef version to use for Test Kitchen or nil for any version .
# SPEC_BLOCK_CI is used to force non-locking behavior inside tests. # We're going to install the latest nightly via Omnitruck later on. # If there isn't a specific override, lock TK to use the same version of Chef as the Gemfile.
None
String, nil