Class: Jets::Stack

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Includes:
Dsl
Defined in:
lib/jets/stack.rb,
lib/jets/stack/dsl.rb,
lib/jets/stack/outputs.rb

Defined Under Namespace

Modules: Dsl Classes: Outputs

Class Method Summary collapse

Class Method Details

.inherited(base) ⇒ Object



13
14
15
16
# File 'lib/jets/stack.rb', line 13

def inherited(base)
  super
  subclasses << base if base.name
end

.output_value(logical_id) ⇒ Object Also known as: lookup

Do not name this output, it’ll collide with the output DSL method



19
20
21
22
# File 'lib/jets/stack.rb', line 19

def output_value(logical_id)
  puts "lookup logical_id: #{logical_id}"
  outputs.value(logical_id)
end

.outputsObject



26
27
28
# File 'lib/jets/stack.rb', line 26

def outputs
  Outputs.new(self)
end

.subclassesObject

Track all command subclasses.



9
10
11
# File 'lib/jets/stack.rb', line 9

def subclasses
  @subclasses ||= []
end