Class: Chef::Provider::AwsLoadBalancer

Inherits:
Chef::Provisioning::AWSDriver::AWSProvider show all
Defined in:
lib/chef/provider/aws_load_balancer.rb

Constant Summary

Constants inherited from Chef::Provisioning::AWSDriver::AWSProvider

Chef::Provisioning::AWSDriver::AWSProvider::AWSResource

Instance Attribute Summary

Attributes inherited from Chef::Provisioning::AWSDriver::AWSProvider

#purging

Instance Method Summary collapse

Methods inherited from Chef::Provisioning::AWSDriver::AWSProvider

#action_handler, #converge_by, #region, #whyrun_supported?

Instance Method Details

#aws_taggerObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/chef/provider/aws_load_balancer.rb', line 4

def aws_tagger
  @aws_tagger ||= begin
    elb_strategy = Chef::Provisioning::AWSDriver::TaggingStrategy::ELB.new(
      new_resource.driver.elb_client,
      new_resource.name,
      new_resource.aws_tags
    )
    Chef::Provisioning::AWSDriver::AWSTagger.new(elb_strategy, action_handler)
  end
end

#converge_tagsObject



15
16
17
# File 'lib/chef/provider/aws_load_balancer.rb', line 15

def converge_tags
  aws_tagger.converge_tags
end

#destroy_aws_object(load_balancer) ⇒ Object



21
22
23
24
25
# File 'lib/chef/provider/aws_load_balancer.rb', line 21

def destroy_aws_object(load_balancer)
  converge_by "delete load balancer #{new_resource.name} (#{load_balancer.load_balancer_name}) in #{region}" do
    new_resource.driver.elb_client.delete_load_balancer(load_balancer_name: load_balancer.load_balancer_name)
  end
end