class RuboCop::Cop::Chef::Deprecations::PoiseArchiveUsage

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

@example

#### 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

Constants

MSG
RESTRICT_ON_SEND

Public Instance Methods

on_block(node) click to toggle source
# File lib/rubocop/cop/chef/deprecation/poise_archive.rb, line 54
def on_block(node)
  match_resource_type?(:poise_archive, node) do
    add_offense(node, severity: :warning)
  end
end
on_send(node) click to toggle source
# File lib/rubocop/cop/chef/deprecation/poise_archive.rb, line 48
def on_send(node)
  depends_poise_archive?(node) do
    add_offense(node, severity: :warning)
  end
end