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

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#action_handlerObject



13
14
15
# File 'lib/chef/provisioning/aws_driver/aws_provider.rb', line 13

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

#converge_by(*args, &block) ⇒ Object

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



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

def converge_by(*args, &block)
  result = nil
  super(*args) do
    result = block.call
  end
  result
end

#regionObject



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

def region
  new_resource.driver.aws_config.region
end

#whyrun_supported?Boolean

All these need to implement whyrun

Returns:

  • (Boolean)


18
19
20
# File 'lib/chef/provisioning/aws_driver/aws_provider.rb', line 18

def whyrun_supported?
  true
end