Class: Chef::Provisioning::AWSDriver::AWSProvider

Inherits:
Chef::Provider::LWRPBase
  • Object
show all
Defined in:
lib/chef/provisioning/aws_driver/aws_provider.rb

Defined Under Namespace

Classes: StatusTimeoutError

Constant Summary collapse

AWSResource =
Chef::Provisioning::AWSDriver::AWSResource

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#purgingObject (readonly)

Returns the value of attribute purging.



148
149
150
# File 'lib/chef/provisioning/aws_driver/aws_provider.rb', line 148

def purging
  @purging
end

Instance Method Details

#action_handlerObject



22
23
24
# File 'lib/chef/provisioning/aws_driver/aws_provider.rb', line 22

def action_handler
  @action_handler ||= Chef::Provisioning::ChefProviderActionHandler.new(self)
end

#converge_by(*args) ⇒ Object

Return the damned value from the block, not whatever weirdness converge_by normally returns.



39
40
41
42
43
44
45
# File 'lib/chef/provisioning/aws_driver/aws_provider.rb', line 39

def converge_by(*args)
  result = nil
  super(*args) do
    result = yield
  end
  result
end

#regionObject



31
32
33
# File 'lib/chef/provisioning/aws_driver/aws_provider.rb', line 31

def region
  new_resource.driver.aws_config[:region]
end

#whyrun_supported?Boolean

All these need to implement whyrun

Returns:

  • (Boolean)


27
28
29
# File 'lib/chef/provisioning/aws_driver/aws_provider.rb', line 27

def whyrun_supported?
  true
end