Class: Convection::Model::Cloudfile
- Inherits:
-
Object
- Object
- Convection::Model::Cloudfile
- Includes:
- DSL::Cloudfile
- Defined in:
- lib/convection/model/cloudfile.rb
Overview
Define your Clouds
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#deck ⇒ Object
readonly
Returns the value of attribute deck.
-
#stack_groups ⇒ Object
readonly
Returns the value of attribute stack_groups.
-
#stacks ⇒ Object
readonly
Returns the value of attribute stacks.
Instance Method Summary collapse
-
#initialize(cloudfile) ⇒ Cloudfile
constructor
A new instance of Cloudfile.
Methods included from DSL::Cloudfile
#attribute, #stack, #stack_group, #template
Methods included from DSL::Helpers
#camel_case, included, method_name, #screaming_snake_case, #snake_case
Methods included from DSL::IntrinsicFunctions
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select
Constructor Details
#initialize(cloudfile) ⇒ Cloudfile
Returns a new instance of Cloudfile
57 58 59 60 61 62 63 64 |
# File 'lib/convection/model/cloudfile.rb', line 57 def initialize(cloudfile) @attributes = Model::Attributes.new @stacks = {} @deck = [] @stack_groups = {} instance_eval(IO.read(cloudfile), cloudfile, 1) end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
52 53 54 |
# File 'lib/convection/model/cloudfile.rb', line 52 def attributes @attributes end |
#deck ⇒ Object (readonly)
Returns the value of attribute deck
54 55 56 |
# File 'lib/convection/model/cloudfile.rb', line 54 def deck @deck end |
#stack_groups ⇒ Object (readonly)
Returns the value of attribute stack_groups
55 56 57 |
# File 'lib/convection/model/cloudfile.rb', line 55 def stack_groups @stack_groups end |
#stacks ⇒ Object (readonly)
Returns the value of attribute stacks
53 54 55 |
# File 'lib/convection/model/cloudfile.rb', line 53 def stacks @stacks end |