Class: CloudBuilder::Stack

Inherits:
Object
  • Object
show all
Includes:
DSL, ExposesRefs
Defined in:
lib/cloud_builder/stack.rb

Instance Attribute Summary

Attributes included from DSL

#globals

Instance Method Summary collapse

Methods included from ExposesRefs

#base64, #get_att, #join, #ref

Methods included from DSL

#dirname, format, hashize, #include_brick, jsonize, #mappings, #method_missing, #output, #parameter, #reference_type, #resource, #to_json

Constructor Details

#initialize(filename) ⇒ Stack

Returns a new instance of Stack.



6
7
8
9
# File 'lib/cloud_builder/stack.rb', line 6

def initialize filename
  @dirname = File.dirname(File.expand_path(filename))
  instance_eval File.read(filename), filename
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CloudBuilder::DSL