Class: Convection::Model::Cloudfile

Inherits:
Object
  • Object
show all
Includes:
DSL::Cloudfile
Defined in:
lib/convection/model/cloudfile.rb

Overview

Define your Clouds

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes



52
53
54
# File 'lib/convection/model/cloudfile.rb', line 52

def attributes
  @attributes
end

#deckObject (readonly)

Returns the value of attribute deck



54
55
56
# File 'lib/convection/model/cloudfile.rb', line 54

def deck
  @deck
end

#stack_groupsObject (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

#stacksObject (readonly)

Returns the value of attribute stacks



53
54
55
# File 'lib/convection/model/cloudfile.rb', line 53

def stacks
  @stacks
end