Class: Chef::Provider::AwsLoadBalancer
Constant Summary
Chef::Provisioning::AWSDriver::AWSProvider::AWSResource
Instance Attribute Summary
#purging
Instance Method Summary
collapse
#action_handler, #converge_by, #region, retry_with_backoff, #whyrun_supported?
Instance Method Details
#aws_tagger ⇒ Object
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/chef/provider/aws_load_balancer.rb', line 5
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
|
16
17
18
|
# File 'lib/chef/provider/aws_load_balancer.rb', line 16
def converge_tags
aws_tagger.converge_tags
end
|
#destroy_aws_object(load_balancer) ⇒ Object
22
23
24
25
26
|
# File 'lib/chef/provider/aws_load_balancer.rb', line 22
def destroy_aws_object(load_balancer)
converge_by "delete load balancer #{new_resource.name} (#{load_balancer.name}) in #{region}" do
load_balancer.delete
end
end
|