Module: Poise::Backports

Defined in:
lib/poise/backports.rb,
lib/poise/backports/not_passed.rb,
lib/poise/backports/verify_path.rb

Overview

Backported features from Chef to be able to use them with older versions.

Since:

  • 2.3.0

Constant Summary collapse

NOT_PASSED =

A sentinel value for optional arguments where nil is a valid value.

Since:

  • 2.3.0

Object.new
VERIFY_PATH =

The correct interpolation key for any version of Chef.

Examples:

file '/path' do
  content my_content
  verify "myapp -t #{Poise::Backports::VERIFY_PATH}"
end

Since:

  • 2.6.0

if Gem::Version.create(Chef::VERSION) < Gem::Version.create('12.5.0')
  '%{file}'
else
  '%{path}'
end