Class: Chef::Resource::Archive

Inherits:
Chef::Resource show all
Includes:
Garcon
Defined in:
lib/garcon/chef/provider/archive.rb

Overview

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.

Examples:

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

Constant Summary

Constants included from Garcon

Garcon::VERSION

Instance Attribute Summary

Attributes inherited from Chef::Resource

#recovery_handlers

Method Summary

Methods included from Garcon

auto_terminate_all_executors?, auto_terminate_global_executors?, coercer, coercer=, config, configuration, crypto, crypto=, disable_auto_termination_of_all_executors!, disable_auto_termination_of_global_executors!, global_fast_executor, global_io_executor, global_timer_set, included, #inspect, kill_global_executors, monotonic_time, new_fast_executor, new_io_executor, physical_processor_count, processor_count, secret, secret=, shutdown_global_executors, #terminal_dimensions, timer, #to_s, wait_for_global_executors_termination, warn

Methods inherited from Chef::Resource

#recovery