class Chef::Resource::Archive

Extracts an archive file by determining the extention of the file and sending it unzip method or extract. The source can be a file path or a URL, for the later the file is downloaded in the Chef cache path. By default the archive file will not be deleted. To have Chef remove the file after it has been extracted set ‘remove_after true` on the resource.

@example

archive 'file.tar.gz' do
  source 'http://server.example.com/file.tar.gz'
  owner 'tomcat'
  group 'tomcat'
  overwrite true
  remove_after true
end