module Poise
  module Backports
    # The correct interpolation key for any version of Chef.
    # @since 2.6.0
    # @example
    #   file '/path' do
    #     content my_content
    #     verify "myapp -t #{Poise::Backports::VERIFY_PATH}"
    #   end
    VERIFY_PATH = if Gem::Version.create(Chef::VERSION) < Gem::Version.create('12.5.0')
      '%{file}'
    else
      '%{path}'
    end
  end
end
