Sha256: b8a963d52b728716dac62d412192dfe8558b6cdb6fffb7885995106ebabf0ebc

Contents?: true

Size: 658 Bytes

Versions: 4

Compression:

Stored size: 658 Bytes

Contents

module Jets
  class Stack
    include Dsl

    class << self
      extend Memoist

      # Track all command subclasses.
      def subclasses
        @subclasses ||= []
      end

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

      # Do not name this output, it'll collide with the output DSL method
      def output_value(logical_id)
        puts "lookup logical_id: #{logical_id}"
        outputs.value(logical_id)
      end
      # Keep lookup for backwards compatibility
      alias_method :lookup, :output_value

      def outputs
        Outputs.new(self)
      end
      memoize :outputs
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/stack.rb
jets-6.0.4 lib/jets/stack.rb
jets-6.0.3 lib/jets/stack.rb
jets-6.0.2 lib/jets/stack.rb