Class: Formatron::DSL::Formatron::Global

Inherits:
Object
  • Object
show all
Extended by:
Util::DSL
Defined in:
lib/formatron/dsl/formatron/global.rb,
lib/formatron/dsl/formatron/global/ec2.rb

Overview

Global configuration

Defined Under Namespace

Classes: EC2

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::DSL

dsl_array, dsl_block, dsl_block_array, dsl_hash, dsl_initialize_block, dsl_initialize_hash, dsl_property

Instance Attribute Details

#hosted_zone_nameObject (readonly)

Returns the value of attribute hosted_zone_name.



11
12
13
# File 'lib/formatron/dsl/formatron/global.rb', line 11

def hosted_zone_name
  @hosted_zone_name
end

Instance Method Details

#hosted_zone_id(value = nil) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/formatron/dsl/formatron/global.rb', line 22

def hosted_zone_id(value = nil)
  unless value.nil?
    @hosted_zone_id = value
    @hosted_zone_name = @aws.hosted_zone_name value
  end
  @hosted_zone_id
end