Skip to main content

PoiseArchiveUsage

All Cookstyle Cops


The department is: Chef/Deprecations

The full name of the cop is: Chef/Deprecations/PoiseArchiveUsage


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNo15.0+

The poise_archive resource in the deprecated poise-archive should be replaced with the archive_file resource found in Chef Infra Client 15+.

Examples

incorrect

poise_archive 'https://example.com/myapp.tgz' do
  destination '/opt/my_app'
end

correct

archive_file 'https://example.com/myapp.tgz' do
  destination '/opt/my_app'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.11.0String
Exclude
  • **/metadata.rb
  • **/attributes/*.rb
  • **/Berksfile
Array

Was this page helpful?









Search Results