Class: Chef::Resource::Download

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

Constant Summary

Constants included from Garcon

Garcon::VERSION

Instance Attribute Summary collapse

Attributes inherited from Chef::Resource

#recovery_handlers

Instance Method Summary collapse

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

Instance Attribute Details

#existObject

Returns the value of attribute exist.



71
72
73
# File 'lib/garcon/chef/provider/download.rb', line 71

def exist
  @exist
end

#installedTrueClass, FalseClass

Returns True if resource exists.

Returns:



71
# File 'lib/garcon/chef/provider/download.rb', line 71

attr_accessor :exist

Instance Method Details

#exist?Boolean

Determine if the resource exists. This value is set by the provider when the current resource is loaded.

Returns:

See Also:

  • Dsccsetup#action_create


81
82
83
# File 'lib/garcon/chef/provider/download.rb', line 81

def exist?
  !!@exist
end