Class: Applb::DSL::EC2::LoadBalancer::Attributes

Inherits:
Object
  • Object
show all
Includes:
Checker, TemplateHelper
Defined in:
lib/applb/dsl/attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TemplateHelper

#context, #include_template

Constructor Details

#initialize(context, lb_name, &block) ⇒ Attributes

Returns a new instance of Attributes.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/applb/dsl/attributes.rb', line 11

def initialize(context, lb_name, &block)
  @context = context.dup
  @lb_name = lb_name

  @result = {
    'access_logs.s3.enabled' => false,
    'access_logs.s3.bucket' => '',
    'access_logs.s3.prefix' => '',
    'idle_timeout.timeout_seconds' => 60,
    'deletion_protection.enabled' => false,
  }
  
  instance_eval(&block)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



9
10
11
# File 'lib/applb/dsl/attributes.rb', line 9

def result
  @result
end