Class: Roadworker::DSL::Hostedzone
- Inherits:
-
Object
- Object
- Roadworker::DSL::Hostedzone
- Includes:
- TemplateHelper
- Defined in:
- lib/roadworker/dsl.rb
Defined Under Namespace
Classes: ResourceRecordSet
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, name, id, rrsets = [], &block) ⇒ Hostedzone
constructor
A new instance of Hostedzone.
Methods included from TemplateHelper
Constructor Details
#initialize(context, name, id, rrsets = [], &block) ⇒ Hostedzone
Returns a new instance of Hostedzone.
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/roadworker/dsl.rb', line 68 def initialize(context, name, id, rrsets = [], &block) @name = DSL.normalize_dns_name(name) @context = context.merge(:hosted_zone_name => @name) @result = OpenStruct.new({ :id => id, :name => @name, :vpcs => [], :resource_record_sets => rrsets, :rrsets => rrsets, :ignore_patterns => [], }) instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
66 67 68 |
# File 'lib/roadworker/dsl.rb', line 66 def result @result end |