Class: CloudBuilder::Stack
- Inherits:
-
Object
- Object
- CloudBuilder::Stack
- Includes:
- DSL, ExposesRefs
- Defined in:
- lib/cloud_builder/stack.rb
Instance Attribute Summary
Attributes included from DSL
Instance Method Summary collapse
-
#initialize(filename) ⇒ Stack
constructor
A new instance of Stack.
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.(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